import urllib.request import binascii s = input() with urllib.request.urlopen('http://www.geocities.jp/unko_der/sample_01.txt') as response: html = response.read() for i in range(200002): if i == 1: continue if i == 0: if s[i] != '3': print(s[i],3) break elif int(s[i]) != html[i] - 48: print(s[i],html[i]-48) break