int main(){ int a,s,p; scanf("%d",&s); while(p=~getchar()){ scanf("%d",&a); if(p+43)s*=a;else s+=a; } printf("%d",s); return 0; }