package no222; import java.util.Scanner; public class Main { static char[] s; static int ind = 0; public static void main(String[] args) { Scanner sc = new Scanner(System.in); s = sc.next().toCharArray(); int a = number(); char op = s[ind++]; int b = number(); if (op == '+') { System.out.println(a-b); }else{ System.out.println(a+b); } } public static int number() { boolean negative = false; if (s[ind] == '+') { ind++; }else if(s[ind] == '-') { ind++; negative = true; } int n = 0; while(ind < s.length && Character.isDigit(s[ind])) { n = n * 10 + s[ind] - '0'; ind++; } return negative ? -n : n; } }