import java.io.BufferedInputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(new BufferedInputStream(System.in));
		List<String> output = new ArrayList<String>();
		while (scan.hasNext()) {
			String input = scan.nextLine();
			String[] in = input.split(" ");
			int a = Integer.parseInt(in[0]);
			String op = in[1];
			int b = Integer.parseInt(in[2]);

			if ("?".equals(op)) {
				break;
			} else {
				if (a >= 0 && a <= 20000 && b >= 0 && b <= 20000) {
					if ("+".equals(op)) {
						int result = a + b;
						output.add(String.valueOf(result));
					} else if ("-".equals(op)) {
						int result = a - b;
						output.add(String.valueOf(result));
					} else if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					}
				}
			}
		}
		for (String out : output) {
			System.out.println(out);
		}
	}

} import java.io.BufferedInputStream; BufferedInputStream java.io import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(new BufferedInputStream(System.in));
		List<String> output = new ArrayList<String>();
		while (scan.hasNext()) {
			String input = scan.nextLine();
			String[] in = input.split(" ");
			int a = Integer.parseInt(in[0]);
			String op = in[1];
			int b = Integer.parseInt(in[2]);

			if ("?".equals(op)) {
				break;
			} else {
				if (a >= 0 && a <= 20000 && b >= 0 && b <= 20000) {
					if ("+".equals(op)) {
						int result = a + b;
						output.add(String.valueOf(result));
					} else if ("-".equals(op)) {
						int result = a - b;
						output.add(String.valueOf(result));
					} else if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					}
				}
			}
		}
		for (String out : output) {
			System.out.println(out);
		}
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(new BufferedInputStream(System.in));
		List<String> output = new ArrayList<String>();
		while (scan.hasNext()) {
			String input = scan.nextLine();
			String[] in = input.split(" ");
			int a = Integer.parseInt(in[0]);
			String op = in[1];
			int b = Integer.parseInt(in[2]);

			if ("?".equals(op)) {
				break;
			} else {
				if (a >= 0 && a <= 20000 && b >= 0 && b <= 20000) {
					if ("+".equals(op)) {
						int result = a + b;
						output.add(String.valueOf(result));
					} else if ("-".equals(op)) {
						int result = a - b;
						output.add(String.valueOf(result));
					} else if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					}
				}
			}
		}
		for (String out : output) {
			System.out.println(out);
		}
	} main {
		Scanner scan = new Scanner(new BufferedInputStream(System.in));
		List<String> output = new ArrayList<String>();
		while (scan.hasNext()) {
			String input = scan.nextLine();
			String[] in = input.split(" ");
			int a = Integer.parseInt(in[0]);
			String op = in[1];
			int b = Integer.parseInt(in[2]);

			if ("?".equals(op)) {
				break;
			} else {
				if (a >= 0 && a <= 20000 && b >= 0 && b <= 20000) {
					if ("+".equals(op)) {
						int result = a + b;
						output.add(String.valueOf(result));
					} else if ("-".equals(op)) {
						int result = a - b;
						output.add(String.valueOf(result));
					} else if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					}
				}
			}
		}
		for (String out : output) {
			System.out.println(out);
		}
	} Scanner scan = new Scanner(new BufferedInputStream(System.in)); scan new Scanner(new BufferedInputStream(System.in)) List<String> output = new ArrayList<String>(); output new ArrayList<String>() while (scan.hasNext()) {
			String input = scan.nextLine();
			String[] in = input.split(" ");
			int a = Integer.parseInt(in[0]);
			String op = in[1];
			int b = Integer.parseInt(in[2]);

			if ("?".equals(op)) {
				break;
			} else {
				if (a >= 0 && a <= 20000 && b >= 0 && b <= 20000) {
					if ("+".equals(op)) {
						int result = a + b;
						output.add(String.valueOf(result));
					} else if ("-".equals(op)) {
						int result = a - b;
						output.add(String.valueOf(result));
					} else if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					}
				}
			}
		} scan.hasNext() scan.hasNext scan {
			String input = scan.nextLine();
			String[] in = input.split(" ");
			int a = Integer.parseInt(in[0]);
			String op = in[1];
			int b = Integer.parseInt(in[2]);

			if ("?".equals(op)) {
				break;
			} else {
				if (a >= 0 && a <= 20000 && b >= 0 && b <= 20000) {
					if ("+".equals(op)) {
						int result = a + b;
						output.add(String.valueOf(result));
					} else if ("-".equals(op)) {
						int result = a - b;
						output.add(String.valueOf(result));
					} else if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					}
				}
			}
		} String input = scan.nextLine(); input scan.nextLine() scan.nextLine scan String[] in = input.split(" "); in input.split(" ") input.split input " " int a = Integer.parseInt(in[0]); a Integer.parseInt(in[0]) Integer.parseInt Integer in[0] in 0 String op = in[1]; op in[1] in 1 int b = Integer.parseInt(in[2]); b Integer.parseInt(in[2]) Integer.parseInt Integer in[2] in 2 if ("?".equals(op)) {
				break;
			} else {
				if (a >= 0 && a <= 20000 && b >= 0 && b <= 20000) {
					if ("+".equals(op)) {
						int result = a + b;
						output.add(String.valueOf(result));
					} else if ("-".equals(op)) {
						int result = a - b;
						output.add(String.valueOf(result));
					} else if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					}
				}
			} "?".equals(op) "?".equals "?" op {
				break;
			} break; {
				if (a >= 0 && a <= 20000 && b >= 0 && b <= 20000) {
					if ("+".equals(op)) {
						int result = a + b;
						output.add(String.valueOf(result));
					} else if ("-".equals(op)) {
						int result = a - b;
						output.add(String.valueOf(result));
					} else if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					}
				}
			} if (a >= 0 && a <= 20000 && b >= 0 && b <= 20000) {
					if ("+".equals(op)) {
						int result = a + b;
						output.add(String.valueOf(result));
					} else if ("-".equals(op)) {
						int result = a - b;
						output.add(String.valueOf(result));
					} else if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					}
				} a >= 0 && a <= 20000 && b >= 0 && b <= 20000 b >= 0 a >= 0 && a <= 20000 && b >= 0 && b <= 20000 a >= 0 a 0 a <= 20000 a 20000 b >= 0 b 0 b <= 20000 b 20000 {
					if ("+".equals(op)) {
						int result = a + b;
						output.add(String.valueOf(result));
					} else if ("-".equals(op)) {
						int result = a - b;
						output.add(String.valueOf(result));
					} else if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					}
				} if ("+".equals(op)) {
						int result = a + b;
						output.add(String.valueOf(result));
					} else if ("-".equals(op)) {
						int result = a - b;
						output.add(String.valueOf(result));
					} else if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					} "+".equals(op) "+".equals "+" op {
						int result = a + b;
						output.add(String.valueOf(result));
					} int result = a + b; result a + b a b output.add(String.valueOf(result)) output.add output String.valueOf(result) String.valueOf String result if ("-".equals(op)) {
						int result = a - b;
						output.add(String.valueOf(result));
					} else if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					} "-".equals(op) "-".equals "-" op {
						int result = a - b;
						output.add(String.valueOf(result));
					} int result = a - b; result a - b a b output.add(String.valueOf(result)) output.add output String.valueOf(result) String.valueOf String result if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					} "*".equals(op) "*".equals "*" op {
						int result = a * b;
						output.add(String.valueOf(result));
					} int result = a * b; result a * b a b output.add(String.valueOf(result)) output.add output String.valueOf(result) String.valueOf String result if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					} "/".equals(op) "/".equals "/" op {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					} if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						} b != 0 b 0 {
							int result = a / b;
							output.add(String.valueOf(result));
						} int result = a / b; result a / b a b output.add(String.valueOf(result)) output.add output String.valueOf(result) String.valueOf String result for (String out : output) {
			System.out.println(out);
		} String out output {
			System.out.println(out);
		} {
			System.out.println(out);
		} System.out.println(out) System.out.println System.out System System.out out String[] args args public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(new BufferedInputStream(System.in));
		List<String> output = new ArrayList<String>();
		while (scan.hasNext()) {
			String input = scan.nextLine();
			String[] in = input.split(" ");
			int a = Integer.parseInt(in[0]);
			String op = in[1];
			int b = Integer.parseInt(in[2]);

			if ("?".equals(op)) {
				break;
			} else {
				if (a >= 0 && a <= 20000 && b >= 0 && b <= 20000) {
					if ("+".equals(op)) {
						int result = a + b;
						output.add(String.valueOf(result));
					} else if ("-".equals(op)) {
						int result = a - b;
						output.add(String.valueOf(result));
					} else if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					}
				}
			}
		}
		for (String out : output) {
			System.out.println(out);
		}
	}

} public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(new BufferedInputStream(System.in));
		List<String> output = new ArrayList<String>();
		while (scan.hasNext()) {
			String input = scan.nextLine();
			String[] in = input.split(" ");
			int a = Integer.parseInt(in[0]);
			String op = in[1];
			int b = Integer.parseInt(in[2]);

			if ("?".equals(op)) {
				break;
			} else {
				if (a >= 0 && a <= 20000 && b >= 0 && b <= 20000) {
					if ("+".equals(op)) {
						int result = a + b;
						output.add(String.valueOf(result));
					} else if ("-".equals(op)) {
						int result = a - b;
						output.add(String.valueOf(result));
					} else if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					}
				}
			}
		}
		for (String out : output) {
			System.out.println(out);
		}
	}

} Main
import java.io.BufferedInputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(new BufferedInputStream(System.in));
		List<String> output = new ArrayList<String>();
		while (scan.hasNext()) {
			String input = scan.nextLine();
			String[] in = input.split(" ");
			int a = Integer.parseInt(in[0]);
			String op = in[1];
			int b = Integer.parseInt(in[2]);

			if ("?".equals(op)) {
				break;
			} else {
				if (a >= 0 && a <= 20000 && b >= 0 && b <= 20000) {
					if ("+".equals(op)) {
						int result = a + b;
						output.add(String.valueOf(result));
					} else if ("-".equals(op)) {
						int result = a - b;
						output.add(String.valueOf(result));
					} else if ("*".equals(op)) {
						int result = a * b;
						output.add(String.valueOf(result));
					} else if ("/".equals(op)) {
						if (b != 0) {
							int result = a / b;
							output.add(String.valueOf(result));
						}
					}
				}
			}
		}
		for (String out : output) {
			System.out.println(out);
		}
	}

}