#include<stdio.h>
#include<string.h>
#include<stdlib.h>

int main(){
  int i, x[2], j=0, y[100], total=0;
  char s[100];

  scanf("%s",s);
  printf("%s",s);

  for(i = 0; s[i] != '\0'; i++){
    if ( s[0] == '+' ){
      total = x[0] + x[1];
    } 
    else if ( s[0] == '-' ){
      total = x[0] - x[1];
    }
    else if ( s[0] == '*' ){
      total = x[0] * x[1];
    } 
    else {
      x[j] = atoi(s[i]);
      j++;
    }
  }

  printf("%d",total);

  return 0;
}