import java.io.*;
class Main{
public static void main(String[] args){
String[] data = new String[3];
int output = 0;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
while (true){
data = (br.readLine()).split(" ");
if (data[1].equals("?")) break;
switch(data[1]){
case "+":
output = Integer.parseInt(data[0]) + Integer.parseInt(data[2]);
break;
case "-":
output = Integer.parseInt(data[0]) - Integer.parseInt(data[2]);
break;
case "*":
output = Integer.parseInt(data[0]) * Integer.parseInt(data[2]);
break;
case"/":
output = Integer.parseInt(data[0]) / Integer.parseInt(data[2]);
break;
}
System.out.println(output);
}
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
br.close();
} catch(IOException e) {
e.printStackTrace();
}
}
}
} import java.io.*; io.* java class Main{
public static void main(String[] args){
String[] data = new String[3];
int output = 0;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
while (true){
data = (br.readLine()).split(" ");
if (data[1].equals("?")) break;
switch(data[1]){
case "+":
output = Integer.parseInt(data[0]) + Integer.parseInt(data[2]);
break;
case "-":
output = Integer.parseInt(data[0]) - Integer.parseInt(data[2]);
break;
case "*":
output = Integer.parseInt(data[0]) * Integer.parseInt(data[2]);
break;
case"/":
output = Integer.parseInt(data[0]) / Integer.parseInt(data[2]);
break;
}
System.out.println(output);
}
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
br.close();
} catch(IOException e) {
e.printStackTrace();
}
}
}
} Main public static void main(String[] args){
String[] data = new String[3];
int output = 0;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
while (true){
data = (br.readLine()).split(" ");
if (data[1].equals("?")) break;
switch(data[1]){
case "+":
output = Integer.parseInt(data[0]) + Integer.parseInt(data[2]);
break;
case "-":
output = Integer.parseInt(data[0]) - Integer.parseInt(data[2]);
break;
case "*":
output = Integer.parseInt(data[0]) * Integer.parseInt(data[2]);
break;
case"/":
output = Integer.parseInt(data[0]) / Integer.parseInt(data[2]);
break;
}
System.out.println(output);
}
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
br.close();
} catch(IOException e) {
e.printStackTrace();
}
}
} main {
String[] data = new String[3];
int output = 0;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
while (true){
data = (br.readLine()).split(" ");
if (data[1].equals("?")) break;
switch(data[1]){
case "+":
output = Integer.parseInt(data[0]) + Integer.parseInt(data[2]);
break;
case "-":
output = Integer.parseInt(data[0]) - Integer.parseInt(data[2]);
break;
case "*":
output = Integer.parseInt(data[0]) * Integer.parseInt(data[2]);
break;
case"/":
output = Integer.parseInt(data[0]) / Integer.parseInt(data[2]);
break;
}
System.out.println(output);
}
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
br.close();
} catch(IOException e) {
e.printStackTrace();
}
}
} String[] data = new String[3]; data new String[3] 3 int output = 0; output 0 BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try {
while (true){
data = (br.readLine()).split(" ");
if (data[1].equals("?")) break;
switch(data[1]){
case "+":
output = Integer.parseInt(data[0]) + Integer.parseInt(data[2]);
break;
case "-":
output = Integer.parseInt(data[0]) - Integer.parseInt(data[2]);
break;
case "*":
output = Integer.parseInt(data[0]) * Integer.parseInt(data[2]);
break;
case"/":
output = Integer.parseInt(data[0]) / Integer.parseInt(data[2]);
break;
}
System.out.println(output);
}
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
br.close();
} catch(IOException e) {
e.printStackTrace();
}
} catch (IOException e) {
e.printStackTrace();
} IOException e {
e.printStackTrace();
} e.printStackTrace() e.printStackTrace e {
try {
br.close();
} catch(IOException e) {
e.printStackTrace();
}
} try {
br.close();
} catch(IOException e) {
e.printStackTrace();
} catch(IOException e) {
e.printStackTrace();
} IOException e {
e.printStackTrace();
} e.printStackTrace() e.printStackTrace e {
br.close();
} br.close() br.close br {
while (true){
data = (br.readLine()).split(" ");
if (data[1].equals("?")) break;
switch(data[1]){
case "+":
output = Integer.parseInt(data[0]) + Integer.parseInt(data[2]);
break;
case "-":
output = Integer.parseInt(data[0]) - Integer.parseInt(data[2]);
break;
case "*":
output = Integer.parseInt(data[0]) * Integer.parseInt(data[2]);
break;
case"/":
output = Integer.parseInt(data[0]) / Integer.parseInt(data[2]);
break;
}
System.out.println(output);
}
} while (true){
data = (br.readLine()).split(" ");
if (data[1].equals("?")) break;
switch(data[1]){
case "+":
output = Integer.parseInt(data[0]) + Integer.parseInt(data[2]);
break;
case "-":
output = Integer.parseInt(data[0]) - Integer.parseInt(data[2]);
break;
case "*":
output = Integer.parseInt(data[0]) * Integer.parseInt(data[2]);
break;
case"/":
output = Integer.parseInt(data[0]) / Integer.parseInt(data[2]);
break;
}
System.out.println(output);
} true {
data = (br.readLine()).split(" ");
if (data[1].equals("?")) break;
switch(data[1]){
case "+":
output = Integer.parseInt(data[0]) + Integer.parseInt(data[2]);
break;
case "-":
output = Integer.parseInt(data[0]) - Integer.parseInt(data[2]);
break;
case "*":
output = Integer.parseInt(data[0]) * Integer.parseInt(data[2]);
break;
case"/":
output = Integer.parseInt(data[0]) / Integer.parseInt(data[2]);
break;
}
System.out.println(output);
} data = (br.readLine()).split(" ") data (br.readLine()).split(" ") (br.readLine()).split (br.readLine()) br.readLine br " " if (data[1].equals("?")) break; data[1].equals("?") data[1].equals data[1] data 1 "?" break; switch(data[1]){
case "+":
output = Integer.parseInt(data[0]) + Integer.parseInt(data[2]);
break;
case "-":
output = Integer.parseInt(data[0]) - Integer.parseInt(data[2]);
break;
case "*":
output = Integer.parseInt(data[0]) * Integer.parseInt(data[2]);
break;
case"/":
output = Integer.parseInt(data[0]) / Integer.parseInt(data[2]);
break;
} data[1] data 1 case "+": "+" case "+": output = Integer.parseInt(data[0]) + Integer.parseInt(data[2]) output Integer.parseInt(data[0]) + Integer.parseInt(data[2]) Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 Integer.parseInt(data[2]) Integer.parseInt Integer data[2] data 2 break; case "-": "-" case "-": output = Integer.parseInt(data[0]) - Integer.parseInt(data[2]) output Integer.parseInt(data[0]) - Integer.parseInt(data[2]) Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 Integer.parseInt(data[2]) Integer.parseInt Integer data[2] data 2 break; case "*": "*" case "*": output = Integer.parseInt(data[0]) * Integer.parseInt(data[2]) output Integer.parseInt(data[0]) * Integer.parseInt(data[2]) Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 Integer.parseInt(data[2]) Integer.parseInt Integer data[2] data 2 break; case"/": "/" case"/": output = Integer.parseInt(data[0]) / Integer.parseInt(data[2]) output Integer.parseInt(data[0]) / Integer.parseInt(data[2]) Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 Integer.parseInt(data[2]) Integer.parseInt Integer data[2] data 2 break; System.out.println(output) System.out.println System.out System System.out output String[] args args
import java.io.*;
class Main{
public static void main(String[] args){
String[] data = new String[3];
int output = 0;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
while (true){
data = (br.readLine()).split(" ");
if (data[1].equals("?")) break;
switch(data[1]){
case "+":
output = Integer.parseInt(data[0]) + Integer.parseInt(data[2]);
break;
case "-":
output = Integer.parseInt(data[0]) - Integer.parseInt(data[2]);
break;
case "*":
output = Integer.parseInt(data[0]) * Integer.parseInt(data[2]);
break;
case"/":
output = Integer.parseInt(data[0]) / Integer.parseInt(data[2]);
break;
}
System.out.println(output);
}
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
br.close();
} catch(IOException e) {
e.printStackTrace();
}
}
}
}