# -*- coding: utf-8 -*- num_set = {x for x in range(1, 11)} b_set = set(map(int, input().split())) print(list(num_set - b_set)[0])