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