#include <stdio.h>
typedef int (*fctptr_t)(int,int);
int add(int a, int b) { return a + b; }
int sub(int a, int b) { return a - b; }
int mul(int a, int b) { return a * b; }
int divide(int a, int b) { return a / b; }
fctptr_t op[4] = {&add,&sub,&mul,÷};
int execute_command(int a, int b, int cmd) {
return op[cmd](a,b);
}
int main() {
int a, b, cmd;
scanf("%d %d %d", &a, &b, &cmd);
int result = execute_command(a, b, cmd);
printf("%d", result);
return 0;
}