B = list(map(int,input().split())) i = 1 while i <= 10: if i != B[i-1]: print(i) i += 1