In a given fraction, if 1 is subtracted from the numerator and 2 is added to the denominator, it becomes \(\frac{1}{2}\). If 7 is subtracted from the numerator and 2 is subtracted from the denominator, it becomes \(\frac{1}{3}\). The fraction is ______.