import java.util.*;
import java.lang.Math;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
while(true)
{ char ch;
long c;
ch=sc.next().charAt(0);
if(ch=='+'||ch=='-'||ch=='*'||ch=='/'||ch=='%')
{
long a=sc.nextLong();
long b=sc.nextLong();
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(a>0&&a<Math.pow(10,8)&&b!=0)
{
if(ch=='/')
{c=a/b;
System.out.println(c);}
if(ch=='%')
{c=a%b;
System.out.println(c);}
}
}
}
else if(ch=='X'||ch=='x')
{break;}
else{
System.out.println("Invalid Operation");
continue;
}
}
} // Your Code Here
}