a = gets.to_f b = gets.to_f p, q = a / 5000, a / (5000**2) dp, dq = b - p * 200000, b - q * (200000 **2) p dp.abs < dq.abs ? 1 : 2