# coding: utf-8 def main(): n = [i for i in range(1,11)] b = [int(i) for i in input().split()] diff = set(n).difference(set(b)) print(list(diff)[0]) if __name__=='__main__': main()