x = (input()) y = (input()) z = (input()) if z == '+': print(x + y) elif z == '-': print(x - y) elif z == '/' and y != 0 : print(x / y) elif z == '*': print(x * y) elif z == 'mod' and type(y) == int and type(x) == int and y != 0: print(x % y) elif z == 'div' and y != 0: print(x // y) elif z == 'pow': print(x ** y) else: print('Деление на 0!')