import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int a=0,b=0,c=0;
char ch=0;
do {
a=sc.nextInt();
b=sc.nextInt();
ch=sc.next().charAt(0);
if (ch == ‘+’) {
c = a + b;
System.out.println(c + " ");
} else if (ch == ‘-’) {
c = a - b;
System.out.println(c + " ");
} else if (ch == '*') {
c = a * b;
System.out.println(c + " ");
} else if (ch == '/') {
c = a / b;
System.out.println(c + " ");
} else if (ch == '%') {
c = a % b;
System.out.println(c + " ");
} else if (ch >= 58 && ch <= 64) {
System.out.println("Invalid operation. Try again.");
}
}while(ch!='x' && ch!='X');
sc.close();
}
}