package yukicoder; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class yukicoder011 { public static void main(String[] args){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String tes = null; try { tes = br.readLine(); } catch (IOException e) { // TODO 自動生成された catch ブロック e.printStackTrace(); } String[] rew = tes.split("\\+"); if(rew.length == 2){ int a = Integer.parseInt(rew[0]); int b = Integer.parseInt(rew[1]); System.out.println(a-b); return; } if(tes.indexOf("\\-") == 1){ rew = tes.split("\\-"); int a = Integer.parseInt(rew[0]); int b = Integer.parseInt(rew[1]); System.out.println(a+b); return; }else if(tes.indexOf("\\-") == 3){ rew = tes.split("\\-"); int a = Integer.parseInt(rew[0]); int b = Integer.parseInt(rew[1]); a = -1*a; b = -1*b; System.out.println(a+b); return; }else if(tes.indexOf("\\-") == 1 && tes.substring(0, 0).equals("\\-") ){ rew = tes.split("\\-"); int a = Integer.parseInt(rew[0]); int b = Integer.parseInt(rew[1]); a = -1*a; System.out.println(a+b); return; }else{ rew = tes.split("\\-"); int a = Integer.parseInt(rew[0]); int b = Integer.parseInt(rew[1]); b = -1*b; System.out.println(a+b); return; } } }