import sys import threading sys.set_int_max_str_digits(0) sys.setrecursionlimit(2**20) threading.stack_size(2**20) I=input I() print(eval(I()))