s = input() import math p = str(math.pi) for i in range(len(s)): if s[i]!=p[i]: print(s[i],p[i]) break