import math pi = str(math.pi) p = input() count = 0 while p[count]==pi[count]: count = count+1 print(p[count], pi[count])