import sys sys.set_int_max_str_digits(1000000) N = input() S = input() T = "" for c in S: if c == '/': T += "//" else: T += c print(eval(T))