ten=["1","2","3","4","5","6","7","8","9","10"] lsten=[] lsten=input().split() for i in range(len(lsten)): if ten[i]!=lsten[i]: break if lsten[i]=="9": print("10") else: print(ten[i])