In the measurement of the acceleration due to gravity using a simple pendulum, the percentage error in the measured value of the length of the pendulum is 2% and that in the time period of oscillation is 1%. The percentage error in the measured value of the acceleration due to gravity is