import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s = new Scanner(System.in);
int N1,N2;
char c;
int result;
do {
c = s.next().charAt(0);
switch (c) {
case '+':
N1 = s.nextInt();
N2 = s.nextInt();
result = N1+N2;
System.out.println(result);
break;
case '-':
N1 = s.nextInt();
N2 = s.nextInt();
result = N1-N2;
System.out.println(result);
break;
case '*':
N1 = s.nextInt();
N2 = s.nextInt();
result = N1*N2;
System.out.println(result);
break;
case '/':
N1 = s.nextInt();
N2 = s.nextInt();
result = N1/N2;
System.out.println(result);
break;
case '%':
N1 = s.nextInt();
N2 = s.nextInt();
result = N1%N2;
System.out.println(result);
break;
default:
System.out.println("Invalid operation. Try again.");}
}
while (c!='x'||c!='X');
}
}