print(eval(''.join([x + y for x , y in zip(input().split(),['*', '*', '%', '*1'])])))