#include<stdio.h>
#include<string.h>
int main()
{
int a[2]={},c=0,j,i=0,k;
char b[22]={},trig=0;
scanf("%s",&b);
//printf("%s\n",b);
while(b[i]&&c<2)
{
//printf("i : %d b : %s\n",i,b);
/**/if(b[i]>='0'&&b[i]<='9')
{
//printf("a[%d] = %d * 10 + %d\n",c,a[c],b[i]-'0');
a[c]=a[c]*10+b[i]-'0';
}
if(b[i]=='+'||b[i]=='-'||b[i]=='*'||b[i]=='/')
{
trig=b[i];
c++;
for(j=i+1;j>0;j--)
{
//printf("%s\n",b);
for(k=1;k<=22;k++)
{
b[k-1]=b[k];
}
b[strlen(b)]='\0';
}
i=-1;
}
i++;
}
switch(trig)
{
case '+' : printf("%d",a[0]+a[1]); break;
case '-' : printf("%d",a[0]-a[1]); break;
case '*' : printf("%d",a[0]*a[1]); break;
case '/' : printf("%.2f",(float)a[0]/a[1]); break;
default : printf("lol");
}
}