a,b;main(p){scanf("%d%c%d",&a,&p,&b);a=!printf("%d",a+b*(p-44));}