def make_pi(n): q, r, t, k, m, x = 1, 0, 1, 1, 3, 3 for j in range(n+100): if 4 * q + r - t < m * t: yield m q, r, t, k, m, x = 10*q, 10*(r-m*t), t, k, (10*(3*q+r))//t - 10*m, x else: q, r, t, k, m, x = q*k, (2*q+r)*x, t*x, k+1, (q*(7*k+2)+r*x)//(t*x), x+2 def main(): s = input() if s[0] != '3': print(s[0],'3') return if s[1] != '.': print(s[1],'.') return digits = make_pi(len(s)) pi_list = [] my_array = [] for i in make_pi(): my_array.append(str(i)) for i in range(len(s)): if s[2+i]!=my_array[1+i]: print(s[2+i],my_array[1+i]) return main()