import sys readline=sys.stdin.readline B=list(map(int,readline().split())) ans=55-sum(B) print(ans)