A = list(map(int, input().split(' '))) Y = sorted(A) K = [0,1,2,3] if A[0] == A[1] == A[2]: print(A[0]) elif Y[0] != Y[1] != Y[2]: K.remove(Y[0]) K.remove(Y[1]) K.remove(Y[2]) print(*K) else: if Y[0] == Y[1]: print(Y[2]) else: print(Y[0])