A fraction becomes 1/3 if 1 is subtracted from both its numerator and denominator. If 1 is added to both the numerator and denominator, it becomes 1/2. Find the fraction.