import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		StringTokenizer st=new StringTokenizer(br.readLine());
		int a=Integer.parseInt(st.nextToken());
		String op=st.nextToken();
		int b=Integer.parseInt(st.nextToken());
		int c=0;

		if(op.equals("+")) {
			c=a+b;
		}else if(op.equals("-")) {
			c=a-b;
		}else if(op.equals("*")) {
			c=a*b;
		}else if(op.equals("/")) {
			c=a/b;
		}

		while(!op.equals("?")) {
			System.out.println(c);

			StringTokenizer sa=new StringTokenizer(br.readLine());
			a=Integer.parseInt(sa.nextToken());
			op=sa.nextToken();
			b=Integer.parseInt(sa.nextToken());

			if(op.equals("+")) {
				c=a+b;
			}else if(op.equals("-")) {
				c=a-b;
			}else if(op.equals("*")) {
				c=a*b;
			}else if(op.equals("/")) {
				c=a/b;
			}

		}

	}

}
 import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		StringTokenizer st=new StringTokenizer(br.readLine());
		int a=Integer.parseInt(st.nextToken());
		String op=st.nextToken();
		int b=Integer.parseInt(st.nextToken());
		int c=0;

		if(op.equals("+")) {
			c=a+b;
		}else if(op.equals("-")) {
			c=a-b;
		}else if(op.equals("*")) {
			c=a*b;
		}else if(op.equals("/")) {
			c=a/b;
		}

		while(!op.equals("?")) {
			System.out.println(c);

			StringTokenizer sa=new StringTokenizer(br.readLine());
			a=Integer.parseInt(sa.nextToken());
			op=sa.nextToken();
			b=Integer.parseInt(sa.nextToken());

			if(op.equals("+")) {
				c=a+b;
			}else if(op.equals("-")) {
				c=a-b;
			}else if(op.equals("*")) {
				c=a*b;
			}else if(op.equals("/")) {
				c=a/b;
			}

		}

	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		StringTokenizer st=new StringTokenizer(br.readLine());
		int a=Integer.parseInt(st.nextToken());
		String op=st.nextToken();
		int b=Integer.parseInt(st.nextToken());
		int c=0;

		if(op.equals("+")) {
			c=a+b;
		}else if(op.equals("-")) {
			c=a-b;
		}else if(op.equals("*")) {
			c=a*b;
		}else if(op.equals("/")) {
			c=a/b;
		}

		while(!op.equals("?")) {
			System.out.println(c);

			StringTokenizer sa=new StringTokenizer(br.readLine());
			a=Integer.parseInt(sa.nextToken());
			op=sa.nextToken();
			b=Integer.parseInt(sa.nextToken());

			if(op.equals("+")) {
				c=a+b;
			}else if(op.equals("-")) {
				c=a-b;
			}else if(op.equals("*")) {
				c=a*b;
			}else if(op.equals("/")) {
				c=a/b;
			}

		}

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		StringTokenizer st=new StringTokenizer(br.readLine());
		int a=Integer.parseInt(st.nextToken());
		String op=st.nextToken();
		int b=Integer.parseInt(st.nextToken());
		int c=0;

		if(op.equals("+")) {
			c=a+b;
		}else if(op.equals("-")) {
			c=a-b;
		}else if(op.equals("*")) {
			c=a*b;
		}else if(op.equals("/")) {
			c=a/b;
		}

		while(!op.equals("?")) {
			System.out.println(c);

			StringTokenizer sa=new StringTokenizer(br.readLine());
			a=Integer.parseInt(sa.nextToken());
			op=sa.nextToken();
			b=Integer.parseInt(sa.nextToken());

			if(op.equals("+")) {
				c=a+b;
			}else if(op.equals("-")) {
				c=a-b;
			}else if(op.equals("*")) {
				c=a*b;
			}else if(op.equals("/")) {
				c=a/b;
			}

		}

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringTokenizer st=new StringTokenizer(br.readLine()); st new StringTokenizer(br.readLine()) int a=Integer.parseInt(st.nextToken()); a Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st String op=st.nextToken(); op st.nextToken() st.nextToken st int b=Integer.parseInt(st.nextToken()); b Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int c=0; c 0 if(op.equals("+")) {
			c=a+b;
		}else if(op.equals("-")) {
			c=a-b;
		}else if(op.equals("*")) {
			c=a*b;
		}else if(op.equals("/")) {
			c=a/b;
		} op.equals("+") op.equals op "+" {
			c=a+b;
		} c=a+b c a+b a b if(op.equals("-")) {
			c=a-b;
		}else if(op.equals("*")) {
			c=a*b;
		}else if(op.equals("/")) {
			c=a/b;
		} op.equals("-") op.equals op "-" {
			c=a-b;
		} c=a-b c a-b a b if(op.equals("*")) {
			c=a*b;
		}else if(op.equals("/")) {
			c=a/b;
		} op.equals("*") op.equals op "*" {
			c=a*b;
		} c=a*b c a*b a b if(op.equals("/")) {
			c=a/b;
		} op.equals("/") op.equals op "/" {
			c=a/b;
		} c=a/b c a/b a b while(!op.equals("?")) {
			System.out.println(c);

			StringTokenizer sa=new StringTokenizer(br.readLine());
			a=Integer.parseInt(sa.nextToken());
			op=sa.nextToken();
			b=Integer.parseInt(sa.nextToken());

			if(op.equals("+")) {
				c=a+b;
			}else if(op.equals("-")) {
				c=a-b;
			}else if(op.equals("*")) {
				c=a*b;
			}else if(op.equals("/")) {
				c=a/b;
			}

		} !op.equals("?") op.equals("?") op.equals op "?" {
			System.out.println(c);

			StringTokenizer sa=new StringTokenizer(br.readLine());
			a=Integer.parseInt(sa.nextToken());
			op=sa.nextToken();
			b=Integer.parseInt(sa.nextToken());

			if(op.equals("+")) {
				c=a+b;
			}else if(op.equals("-")) {
				c=a-b;
			}else if(op.equals("*")) {
				c=a*b;
			}else if(op.equals("/")) {
				c=a/b;
			}

		} System.out.println(c) System.out.println System.out System System.out c StringTokenizer sa=new StringTokenizer(br.readLine()); sa new StringTokenizer(br.readLine()) a=Integer.parseInt(sa.nextToken()) a Integer.parseInt(sa.nextToken()) Integer.parseInt Integer sa.nextToken() sa.nextToken sa op=sa.nextToken() op sa.nextToken() sa.nextToken sa b=Integer.parseInt(sa.nextToken()) b Integer.parseInt(sa.nextToken()) Integer.parseInt Integer sa.nextToken() sa.nextToken sa if(op.equals("+")) {
				c=a+b;
			}else if(op.equals("-")) {
				c=a-b;
			}else if(op.equals("*")) {
				c=a*b;
			}else if(op.equals("/")) {
				c=a/b;
			} op.equals("+") op.equals op "+" {
				c=a+b;
			} c=a+b c a+b a b if(op.equals("-")) {
				c=a-b;
			}else if(op.equals("*")) {
				c=a*b;
			}else if(op.equals("/")) {
				c=a/b;
			} op.equals("-") op.equals op "-" {
				c=a-b;
			} c=a-b c a-b a b if(op.equals("*")) {
				c=a*b;
			}else if(op.equals("/")) {
				c=a/b;
			} op.equals("*") op.equals op "*" {
				c=a*b;
			} c=a*b c a*b a b if(op.equals("/")) {
				c=a/b;
			} op.equals("/") op.equals op "/" {
				c=a/b;
			} c=a/b c a/b a b String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		StringTokenizer st=new StringTokenizer(br.readLine());
		int a=Integer.parseInt(st.nextToken());
		String op=st.nextToken();
		int b=Integer.parseInt(st.nextToken());
		int c=0;

		if(op.equals("+")) {
			c=a+b;
		}else if(op.equals("-")) {
			c=a-b;
		}else if(op.equals("*")) {
			c=a*b;
		}else if(op.equals("/")) {
			c=a/b;
		}

		while(!op.equals("?")) {
			System.out.println(c);

			StringTokenizer sa=new StringTokenizer(br.readLine());
			a=Integer.parseInt(sa.nextToken());
			op=sa.nextToken();
			b=Integer.parseInt(sa.nextToken());

			if(op.equals("+")) {
				c=a+b;
			}else if(op.equals("-")) {
				c=a-b;
			}else if(op.equals("*")) {
				c=a*b;
			}else if(op.equals("/")) {
				c=a/b;
			}

		}

	}

} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		StringTokenizer st=new StringTokenizer(br.readLine());
		int a=Integer.parseInt(st.nextToken());
		String op=st.nextToken();
		int b=Integer.parseInt(st.nextToken());
		int c=0;

		if(op.equals("+")) {
			c=a+b;
		}else if(op.equals("-")) {
			c=a-b;
		}else if(op.equals("*")) {
			c=a*b;
		}else if(op.equals("/")) {
			c=a/b;
		}

		while(!op.equals("?")) {
			System.out.println(c);

			StringTokenizer sa=new StringTokenizer(br.readLine());
			a=Integer.parseInt(sa.nextToken());
			op=sa.nextToken();
			b=Integer.parseInt(sa.nextToken());

			if(op.equals("+")) {
				c=a+b;
			}else if(op.equals("-")) {
				c=a-b;
			}else if(op.equals("*")) {
				c=a*b;
			}else if(op.equals("/")) {
				c=a/b;
			}

		}

	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		StringTokenizer st=new StringTokenizer(br.readLine());
		int a=Integer.parseInt(st.nextToken());
		String op=st.nextToken();
		int b=Integer.parseInt(st.nextToken());
		int c=0;

		if(op.equals("+")) {
			c=a+b;
		}else if(op.equals("-")) {
			c=a-b;
		}else if(op.equals("*")) {
			c=a*b;
		}else if(op.equals("/")) {
			c=a/b;
		}

		while(!op.equals("?")) {
			System.out.println(c);

			StringTokenizer sa=new StringTokenizer(br.readLine());
			a=Integer.parseInt(sa.nextToken());
			op=sa.nextToken();
			b=Integer.parseInt(sa.nextToken());

			if(op.equals("+")) {
				c=a+b;
			}else if(op.equals("-")) {
				c=a-b;
			}else if(op.equals("*")) {
				c=a*b;
			}else if(op.equals("/")) {
				c=a/b;
			}

		}

	}

}

