# 問題文読んでないけどこれじゃだめ? n = int(input()) s = input() res = eval(s) print(res)