import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String op = ""; int p = 0; int t1 = 0; int t2 = 0; String st = ""; for(int i = 0; i < s.length(); i++) { String str = String.valueOf(s.charAt(i)); if(i == 0) { st += str; } else if(i < s.length() - 1) { if((str.equals("+")) || (str.equals("-"))) { if(p == 0) { t1 = Integer.parseInt(st); op = str; p++; st = ""; } else { st += str; } } else { st += str; } } else { st += str; t2 = Integer.parseInt(st); } } int ans = 0; if(op.equals("-")) { ans = t1 + t2; } else { ans = t1 - t2; } System.out.println(ans); } }