N = int(input()) S = input() print(eval(S))