import java.util.*; public class Exercise89{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); char[] sArray = s.toCharArray(); char op = 'a'; boolean num = false; int index = 0; for(int i = 0; i < sArray.length; i++){ if(num && !Character.isLetterOrDigit(sArray[i])){ op = sArray[i]; index = i; } num = Character.isLetterOrDigit(sArray[i]); } int firstNum = Integer.parseInt(s.substring(0, index)); int secondNum = Integer.parseInt(s.substring(index + 1, s.length())); System.out.println((op == '+') ? firstNum - secondNum : firstNum + secondNum); } }