#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 (*operation[4])(int,int);
int execute_command(int a, int b, int cmd) {
// Your logic here using function pointer array
return operation[cmd](a,b);
}
int main() {
int a, b, cmd;
scanf("%d %d %d", &a, &b, &cmd);
operation[0] = add;
operation[1] = sub;
operation[2] = mul;
operation[3] = divide;
int result = execute_command(a, b, cmd);
printf("%d", result);
return 0;
}