package yukicoder; import java.util.Scanner; public class Main{ public static void main(String[] args)throws Exception{ new Main().solve(); } void solve(){ Scanner sc=new Scanner(System.in); char[] c=sc.next().toCharArray(); int n=c.length; int now=0; boolean tasu=true; int ans=0; for(int i=0;i=0&&c[i]-'0'<=9){ now*=10; now+=c[i]-'0'; } else{ if(tasu)ans+=now; else ans*=now; now=0; if(c[i]=='+')tasu=false; else if(c[i]=='*')tasu=true; } } if(tasu)ans+=now; else ans*=now; System.out.println(ans); } }