print([*({*range(1,11)}-{*map(int,input().split())})][0])