# -*- coding: utf-8 -*- # https://yukicoder.me/problems/no/481 def main(): for i, j in zip(map(int, input().split()), range(1, 11)): if i != j: print(j) return if __name__ == '__main__': main()