#include <stdio.h>
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; }
int execute_command(int a, int b, int cmd) {
int (*cmds[4])(int, int);
cmds[0] = &add;
cmds[1] = ⊂
cmds[2] = &mul;
cmds[3] = ÷
return cmds[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;
}