import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.regex.*; public class Main { public static void main(String[] args) { BufferedReader stdReader =new BufferedReader(new InputStreamReader(System.in)); try { String line = stdReader.readLine(); if(line.charAt(0)=='+'){ line = line.substring(1,line.length()); } Pattern pattern = Pattern.compile("\\+"); Matcher matcher = pattern.matcher(line); if(matcher.find()){ String[] temps = line.split("\\+"); System.out.println(Integer.parseInt(temps[0])-Integer.parseInt(temps[1])); }else{ String[] temps = line.split("\\-"); System.out.println(Integer.parseInt(temps[0])+Integer.parseInt(temps[1])); } } catch (IOException e) { e.printStackTrace(); } } }