import java.util.Scanner;
import java.util.Stack;
public class 계산기프로그램 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int sum = sc.nextInt();
while (true) {
String str = sc.nextLine();
if (str.equals("="))
break;
switch (str) {
case "+":
sum += sc.nextInt();
break;
case "-":
sum -= sc.nextInt();
break;
case "*":
sum *= sc.nextInt();
break;
case "/":
sum /= sc.nextInt();
break;
default:
break;
}
}
System.out.println(sum);
sc.close();
}
}