#include main(){ int a,ans = 0; char c; scanf("%d%c%d",&ans,&c,&a); if(c=='+'){ans+=a;} else{ans*=a;} scanf("%c",&c); while(c!=10){ scanf("%d",&a); if(c=='+'){ans+=a;} else{ans*=a;} scanf("%c",&c); } printf("%d\n",ans); }