#!/usr/bin/env python indat = [int(x) for x in input().split()] ref = range(1, 11) ans = list(set(ref) - set(indat)) print(ans[0])