B = input().split() ch_list = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] for i in range(10): if ch_list[i] not in B: print(ch_list[i])