#include <stdio.h>

int main(void) {
  int a, b;
  char op;
  int ans;
  int loop = 1;
  scanf("%d %c %d", &a, &op, &b);
  while (loop) {
    switch (op) {
    case '+':
      ans = a + b;
      break;
    case '-':
      ans = a - b;
      break;
    case '*':
      ans = a * b;
      break;
    case '/':
      ans = a / b;
      break;
    case '?':
      break;
    }
    if (op != '?') {
      printf("%d\\n", ans);
    } else {
      loop = 0;
    }
  }
  return 0;
}

#include <stdio.h>

int main(void) {
  int a, b;
  char op;
  int ans;
  int loop = 1;
  while (loop) {
    scanf("%d %c %d", &a, &op, &b);
    switch (op) {
    case '+':
      ans = a + b;
      break;
    case '-':
      ans = a - b;
      break;
    case '*':
      ans = a * b;
      break;
    case '/':
      ans = a / b;
      break;
    case '?':
      break;
    }
    if (op != '?') {
      printf("%d\\n", ans);
    } else {
      loop = 0;
    }
  }
  return 0;
}


#include <iostream>

using namespace std;

int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (1) {
    if (op == '?')
      break;
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }
  }
  return 0;
}

#include <iostream>

using namespace std;

int main() {
  int a, b;
  char op;

  while (1) {
    cin >> a >> op >> b;
    if (op == '?')
      break;
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }
  }
  return 0;
}


#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;

int main() {
  vector<int> v;
  int a, b, op;
  while (1) {
    scanf("%d", &a);
    scanf("%d", &op);
    scanf("%d", &b);
    if (op == '?') {
      break;
    } else if (op == '+') {
      v.push_back(a + b);
    } else if (op == '-') {
      v.push_back(a - b);
    } else if (op == '*') {
      v.push_back(a * b);
    } else if (op == '/') {
      v.push_back(a / b);
    }
  }

  for (int i = 0; i < v.size(); i++) {
    printf("%d\\n", v[i]);
  }

  return 0;
}

#include <iostream>
#define PI 3.141592653589
using namespace std;

int main() {
  while (1) {
    int x, y;
    char c;
    cin >> x >> c >> y;

    if (c == '?')
      break;
    int z;
    switch (c) {
    case '+':
      z = x + y;
      break;
    case '-':
      z = x - y;
      break;
    case '*':
      z = x * y;
      break;
    case '/':
      z = x / y;
      break;
    case '%':
      z = x % y;
      break;
    }
    printf("%d\\n", z);
  }

  return 0;
}


#include <algorithm>
#include <iostream>
using namespace std;
int main() {
  int a, b, op, c;
  while (true) {
    cin >> a >> op >> b;
    if (op == '/')
      c = a / b;
    if (op == '+')
      c = a + b;
    if (op == '-')
      c = a - b;
    if (op == '*')
      c = a * b;
    if (op == '?')
      break;
    else
      cout << c << endl;
  }
}

#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (op != '?') {
    int c;
    if (op == '+')
      c = a + b;
    if (op == '-')
      c = a - b;
    if (op == '*')
      c = a * b;
    if (op == '/')
      c = a / b;
    cout << c << endl;
    cin >> a >> op >> b;
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (op = '?') {
    int c;
    if (op == '+')
      c = a + b;
    if (op == '-')
      c = a - b;
    if (op == '*')
      c = a * b;
    if (op == '/')
      c = a / b;
    cout << c << endl;
    cin >> a >> op >> b;
  }
}

#include <iostream>
using namespace std;
int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (op != '?') {
    int c;
    if (op == '+')
      c = a + b;
    if (op == '-')
      c = a - b;
    if (op == '*')
      c = a * b;
    if (op == '/')
      c = a / b;
    cout << c << endl;
    cin >> a >> op >> b;
  }
}


#include <iostream>
using namespace std;
int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (op != '?') {
    int c;
    if (op == '+')
      c = a + b;
    if (op == '-')
      c = a - b;
    if (op == '*')
      c = a * b;
    if (op == '/')
      c = a / b;
    cout << c << endl;
  }
}


#include <iomanip>
#include <iostream>
#include <string.h>
using namespace std;

int main() {
  int a, b;
  char op;
  while (1) {
    cin >> a >> op >> b;
    if (strcat(&op, "?") == 0) {
      break;
    } else if (strcat(&op, "+") == 0)
      cout << a + b << endl;
    else if (strcat(&op, "-") == 0)
      cout << a - b << endl;
    else if (strcat(&op, "*") == 0)
      cout << a * b << endl;
    else if (strcat(&op, "/") == 0)
      cout << a / b << endl;
  }

  return 0;
}

// class point	の練習（クラスの高度な実装）
#include <cstring>
#include <iomanip>
#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op[2] = "+";
  while (1) {
    cin >> a >> op[0] >> b;
    if (strcmp(op, "?") == 0) {
      break;
    } else if (strcmp(op, "+") == 0)
      cout << a + b << endl;
    else if (strcmp(op, "-") == 0)
      cout << a - b << endl;
    else if (strcmp(op, "*") == 0)
      cout << a * b << endl;
    else if (strcmp(op, "/") == 0)
      cout << a / b << endl;
  }

  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int a, op, b, c;
  cin >> a >> op >> b;
  while (1) {
    if (op == '+')
      c = a + b;
    if (op == '-')
      c = a - b;
    if (op == '*')
      c = a * b;
    if (op == '/')
      c = a / b;
    if (op == '?')
      break;
    cout << c << endl;
    cin >> a >> op >> b;
  }
}

#include <algorithm>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (op != '?') {
    int c;
    if (op == '+')
      c = a + b;
    else if (op == '-')
      c = a - b;
    else if (op == '*')
      c = a * b;
    else
      c = a / b;
    cout << c << endl;
    cin >> a >> op >> b;
  }
}


#include <cstdio>

int main() {
  for (int i = 0;; i++) {
    int a, b, c;
    char op;
    scanf("%d%c%d", &a, &op, &b);
    if (op == '?') {
      break;
    }
    if (op == '+') {
      c = a + b;
    }
    if (op == '-') {
      c = a - b;
    }
    if (op == '*') {
      c = a * b;
    }
    if (op == '/') {
      c = a / b;
    }
    printf("%d\\n", c);
  }
  return 0;
}

#include <cstdio>

int main() {
  for (int i = 0;; i++) {
    int a, b, c;
    char op;
    scanf("%d %c %d", &a, &op, &b);
    if (op == '?') {
      break;
    }
    if (op == '+') {
      c = a + b;
    }
    if (op == '-') {
      c = a - b;
    }
    if (op == '*') {
      c = a * b;
    }
    if (op == '/') {
      c = a / b;
    }
    printf("%d\\n", c);
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  char op;
  int a, b;
  while (1) {
    cin >> a >> op >> b;
    if (a == 0 && b == 0 && op == '?')
      break;

    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    } else {
    }
  }

  return 0;
}

#include <iostream>
using namespace std;
int main() {
  char op;
  int a, b;
  while (1) {
    cin >> a >> op >> b;
    if (op == '?')
      break;

    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    } else {
    }
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;

  cin >> a >> op >> b;

  while (1) {
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << (int)a / b << endl;
    } else {
      break;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;

  while (1) {
    cin >> a >> op >> b;

    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << (int)a / b << endl;
    } else {
      break;
    }
  }
  return 0;
}


#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  int a, o, c;

  while (1) {
    cin >> a >> o >> c;
    if (o == '?')
      break;
    if (o == '+') {
      cout << a + c << endl;
    } else if (o == '-') {
      cout << a - c << endl;
    } else if (o == '*') {
      cout << a * c << endl;
    } else if (o == '/') {
      printf("%d\\n", a / c);
    }
  };
  return 0;
}

#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  int a, c;
  char o;
  while (1) {
    scanf("%d %c %d", &a, &o, &c);
    if (o == '?')
      break;
    else if (o == '+') {
      cout << a + c << endl;
    } else if (o == '-') {
      cout << a - c << endl;
    } else if (o == '*') {
      cout << a * c << endl;
    } else if (o == '/') {
      printf("%d\\n", a / c);
    } else
      return 0;
  }
  return 0;
}


#include <iostream>

int main() {
  int a, b;
  char op;
  std::cin >> a >> op >> b;

  while (1) {
    if (op == '+')
      std::cout << a + b;
    else if (op == '-')
      std::cout << a - b;
    else if (op == '*')
      std::cout << a * b;
    else if (op == '/')
      std::cout << a / b;
    else if (op == '?')
      break;
    std::cout << std::endl;
  }
}

#include <iostream>

int main() {
  int a, b;
  char op;

  while (1) {
    std::cin >> a >> op >> b;
    if (op == '+')
      std::cout << a + b;
    else if (op == '-')
      std::cout << a - b;
    else if (op == '*')
      std::cout << a * b;
    else if (op == '/')
      std::cout << a / b;
    else if (op == '?')
      break;
    std::cout << std::endl;
  }
}


#include <iostream>
#include <string>
using namespace std;
int main(void) {
  int a, b;
  string op;

  cin >> a >> op >> b;
  for (int i = 0; i = 1; i = 0) {

    if (op == "+") {
      cout << a + b << endl;
    }

    if (op == "-") {
      cout << a - b << endl;
    }

    if (op == "*") {
      cout << a * b << endl;
    }

    if (op == "/") {
      cout << a / b << endl;
    }

    if (op == "?") {
      i = 1;
    }
  }
}

#include <iostream>
#include <string>
using namespace std;
int main() {
  int a, b;
  string op;
  for (int i = 0; i < 1000000; i++) {
    cin >> a;
    cin >> op;
    cin >> b;
    if (op == "+") {
      cout << a + b << endl;
    }
    if (op == "-") {
      cout << a - b << endl;
    }
    if (op == "*") {
      cout << a * b << endl;
    }
    if (op == "/") {
      cout << a / b << endl;
    }
    if (op == "?") {
      break;
    }
  }
}


#include <iostream>
#include <string>
using namespace std;

int main() {
  int a, b;
  string op;
  cin >> a >> op >> b;
  while (true) {
    if (op == "?")
      break;

    if (op == "+") {
      cout << a + b << endl;
    } else if (op == "-") {
      cout << a - b << endl;
    } else if (op == "*") {
      cout << a * b << endl;
    } else if (op == "/") {
      cout << a / b << endl;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  string op;
  while (true) {
    cin >> a >> op >> b;

    if (op == "?")
      break;

    if (op == "+") {
      cout << a + b << endl;
    } else if (op == "-") {
      cout << a - b << endl;
    } else if (op == "*") {
      cout << a * b << endl;
    } else if (op == "/") {
      cout << a / b << endl;
    }
  }
  return 0;
}


#include <stdio.h>
int main() {
  int a, b, d;
  char c;
  while (1) {
    scanf("%d %d %d", &a, &c, &b);
    if (c == '?')
      break;
    if (c == '+') {
      d = a + b;
      printf("%d", d);
    }
    if (c == '-') {
      d = a - b;
      printf("%d", d);
    }
    if (c == '*') {
      d = a * b;
      printf("%d", d);
    }
    if (c == '/') {
      d = a / b;
      printf("%d", d);
    }
  }

  return 0;
}


#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;

  while (1) {

    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    } else if (op == '?')
      break;
  }

  return 0;
}

#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;

  while (1) {

    cin >> a >> op >> b;
    if (op == '?')
      break;

    if (op == '+')
      cout << a + b << endl;
    else if (op == '-')
      cout << a - b << endl;
    else if (op == '*')
      cout << a * b << endl;
    else if (op == '/')
      cout << a / b << endl;
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (op != '?') {
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else {
      cout << a / b << endl;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  while (1) {
    cin >> a >> op >> b;

    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    } else
      break;
  }
  return 0;
}


#include <stdio.h>

int main(void) {
  int a, b, op, x;
  scanf("%d %c %d", &a, &op, &b);
  x = 0;
  while (1) {
    if (op == '+') {
      x = a + b;
      printf("%d\\n", x);
    } else if (op == '-') {
      x = a - b;
      printf("%d\\n", x);
    } else if (op == '*') {
      x = a * b;
      printf("%d\\n", x);
    } else if (op == '/') {
      x = a / b;
      printf("%d\\n", x);
    } else {
      break;
    }
  }

  return 0;
}

#include <stdio.h>

int main(void) {
  int a, b, x;
  char op;
  x = 0;
  while (1) {
    scanf("%d %c %d", &a, &op, &b);
    if (op == '+') {
      x = a + b;
      printf("%d\\n", x);
    } else if (op == '-') {
      x = a - b;
      printf("%d\\n", x);
    } else if (op == '*') {
      x = a * b;
      printf("%d\\n", x);
    } else if (op == '/') {
      x = a / b;
      printf("%d\\n", x);
    } else {
      break;
    }
  }

  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int a, b, c, x, y;
  char op;
  while (1) {
    cin >> a >> op >> b;
    if (a == 0 && b == 0 && op == '?')
      break;
    if (op == '+') {
      x = a + b;
      cout << x << endl;
    } else if (op == '-') {
      x = a - b;
      cout << x << endl;
    } else if (op == '*') {
      x = a * b;
      cout << x << endl;
    } else if (op == '/') {
      x = a / b;
      cout << x << endl;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int a, b, x, y, i;
  char op;
  for (;; i++) {
    cin >> a >> op >> b;
    if (op == '+') {
      x = a + b;
      cout << x << endl;
    } else if (op == '-') {
      x = a - b;
      cout << x << endl;
    } else if (op == '*') {
      x = a * b;
      cout << x << endl;
    } else if (op == '/') {
      x = a / b;
      cout << x << endl;
    }
    if (op == '?')
      break;
    {}
  }
  return 0;
}


#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b;
  char sa, sb, op;
  cin >> a >> op >> b;
  do {
    if (op == '+')
      cout << a + b << endl;
    if (op == '-')
      cout << a - b << endl;
    if (op == '*')
      cout << a * b << endl;
    if (op == '/') {
      if (b == 0) {
        continue;
      } else {
        cout << a / b << endl;
      }
    }
    if (op == '?')
      break;
  } while (1);

  return 0;
}

#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b;
  char sa, sb, op;

  do {
    // cin >> sa;
    // if (sa == '?') {
    //     break;
    // } else {
    //     cin >> op >> sb;
    // }

    cin >> a >> op >> b;

    // a = atoi(sa); b = atoi(sb);
    if (op == '+')
      cout << a + b << endl;
    if (op == '-')
      cout << a - b << endl;
    if (op == '*')
      cout << a * b << endl;
    if (op == '/') {
      if (b == 0) {
        continue;
      } else {
        cout << a / b << endl;
      }
    }
    // if (sa == '?' || op == '?') break;
    if (op == '?')
      break;
  } while (1);

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, c;
  char b;

  while (true) {
    cin >> a >> b >> c;

    if (a == 0 && c == 0)
      break;

    if (b == '+')
      cout << a + c << endl;
    else if (b == '-')
      cout << a - c << endl;
    else if (b == '*')
      cout << a * c << endl;
    else
      cout << a / c << endl;
  }

  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, c;
  char b;

  while (true) {
    cin >> a >> b >> c;

    if (b == '?')
      break;

    if (b == '+')
      cout << a + c << endl;
    else if (b == '-')
      cout << a - c << endl;
    else if (b == '*')
      cout << a * c << endl;
    else
      cout << a / c << endl;
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (op != '?') {
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }
  }
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (op != '?') {
    if (op == '+') {
      cout << a + b << endl;
      cin >> a >> op >> b;
    } else if (op == '-') {
      cout << a - b << endl;
      cin >> a >> op >> b;
    } else if (op == '*') {
      cout << a * b << endl;
      cin >> a >> op >> b;
    } else if (op == '/') {
      cout << a / b << endl;
      cin >> a >> op >> b;
    }
  }
}


#include <iostream>
using namespace std;
#include <iomanip>
#define _USE_MATH_DEFINES
#include <cmath>

int main() {
  int a, b;
  char op;

  cin >> a >> op >> b;

  while (!(a == 0 && op == '?' && b == 0)) {
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }

    cin >> a >> op >> b;
  }

  return 0;
}

#include <iostream>
using namespace std;
#include <iomanip>
#define _USE_MATH_DEFINES
#include <cmath>

int main() {
  int a, b;
  char op;

  cin >> a >> op >> b;

  while (!(op == '?')) {
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }

    cin >> a >> op >> b;
  }

  return 0;
}


#include <iostream>
using namespace std;
int a, b, op, i;
int main() {
  cin >> a >> op >> b >> i;
  cout << "i" << a + b << endl;
  cout << "i" << a - b << endl;
  cout << "i" << a * b << endl;
  cout << "i" << a / b << endl;
  return 0;
}

#include <iostream>
#include <string>

using namespace std;

int main() {
  int a, b;
  string op;

  while (true) {
    cin >> a >> op >> b;

    if (op == "+")
      cout << a + b << endl;
    else if (op == "-")
      cout << a - b << endl;
    else if (op == "*")
      cout << a * b << endl;
    else if (op == "/")
      cout << a / b << endl;
    else if (op == "?")
      break;
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int x, y, ans;
  char op;
  cin >> x;
  cin >> op;
  cin >> y;
  while (x != 0 || op != '?' || y != 0) {
    switch (op) {
    case '+':
      ans = x + y;
      break;
    case '-':
      ans = x - y;
      break;
    case '*':
      ans = x * y;
      break;
    case '/':
      ans = x / y;
      break;
    }
    cout << ans << "\\n";
    cin >> x;
    cin >> op;
    cin >> y;
  }
}

#include <iostream>
using namespace std;
int main() {
  int x, y, ans;
  char op;
  cin >> x >> op >> y;
  while (op != '?') {
    switch (op) {
    case '+':
      ans = x + y;
      break;
    case '-':
      ans = x - y;
      break;
    case '*':
      ans = x * y;
      break;
    case '/':
      ans = x / y;
      break;
    }
    cout << ans << "\\n";
    cin >> x >> op >> y;
  }
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (op != '?') {
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (op != '?') {
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }
    cin >> a >> op >> b;
  }
  return 0;
}


#include <iomanip>
#include <iostream>
using namespace std;

int main() {
  string op;
  int a, b;

  while (1) {
    cin >> a >> op >> b;
    if (a == 0 && b == 0) {
      break;
    }
    if (op == "+") {
      cout << a + b << endl;
    } else if (op == "-") {
      cout << a - b << endl;
    } else if (op == "*") {
      cout << a * b << endl;
    } else {
      cout << a / b << endl;
    }
  }
  return 0;
}

#include <iomanip>
#include <iostream>
using namespace std;

int main() {
  string op;
  int a, b;

  while (1) {
    cin >> a >> op >> b;
    if (op == "?") {
      break;
    }
    if (op == "+") {
      cout << a + b << endl;
    } else if (op == "-") {
      cout << a - b << endl;
    } else if (op == "*") {
      cout << a * b << endl;
    } else {
      cout << a / b << endl;
    }
  }
  return 0;
}


#include <iostream>

using namespace std;

int main() {
  int a, b;
  char op;

  while (true) {
    cin >> a >> op >> b;
    if (op == '?') {
      return -1;
    }
    switch (op) {
    case '+':
      cout << a + b << endl;
      break;
    case '-':
      cout << a - b << endl;
      break;
    case '*':
      cout << a * b << endl;
      break;
    case '/':
      cout << a / b << endl;
      break;
    }
  }

  return 0;
}

#include <iostream>

using namespace std;

int main() {
  while (true) {
    int a, b;
    char op;
    cin >> a >> op >> b;

    if (op == '?') {
      break;
    }
    switch (op) {
    case '+':
      cout << a + b << endl;
      break;
    case '-':
      cout << a - b << endl;
      break;
    case '*':
      cout << a * b << endl;
      break;
    case '/':
      cout << a / b << endl;
      break;
    }
  }

  return 0;
}


#include <iostream>

using namespace std;

int main() {
  int a, b;
  char op;

  while (1) {

    cin >> a >> op >> b;
    switch (op) {
    case '+':
      cout << a + b << endl;
      break;
    case '-':
      cout << a - b << endl;
      break;
    case '*':
      cout << a * b << endl;
      break;
    case '/':
      cout << a / b << endl;
      break;
    case '?':
      break;
    }
  }
}

#include <iostream>

using namespace std;

int main() {
  int a, b;
  char op;

  while (1) {

    cin >> a >> op >> b;
    if (op == '?')
      break;

    switch (op) {
    case '+':
      cout << a + b << endl;
      break;
    case '-':
      cout << a - b << endl;
      break;
    case '*':
      cout << a * b << endl;
      break;
    case '/':
      cout << a / b << endl;
      break;
    }
  }
}


#include <bits/stdc++.h>
using namespace std;

int a, b;
char op;
int ans;

int main() {
  while (1) {
    cin >> a >> op >> b;
    if (op == '+') {
      ans = a + b;
    } else if (op = '-') {
      ans = a - b;
    } else if (op == '*') {
      ans = a * b;
    } else if (op == '/') {
      ans = a / b;
    } else {
      break;
    }
    cout << ans << endl;
  }
}

#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b;
  char op;

  while (1) {
    cin >> a >> op >> b;

    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    } else {
      break;
    }
  }

  return (0);
}


#include <stdio.h>
int main(void) {
  int a, b, x;
  char op;
  scanf("%d %c %d\\n", &a, &op, &b);
  x = 0;
  while (1) {
    if (op == '+') {
      x = a + b;
      printf("%d\\n", x);
    } else if (op == '-') {
      x = a - b;
      printf("%d\\n", x);
    } else if (op == '*') {
      x = a * b;
      printf("%d\\n", x);
    } else if (op == '/') {
      x = a / b;
      printf("%d\\n", x);
    } else {
      break;
    }
  }
  return 0;
}

#include <stdio.h>
int main(void) {
  int a, b, x;
  char op;
  x = 0;
  while (1) {
    scanf("%d %c %d", &a, &op, &b);
    if (op == '+') {
      x = a + b;
      printf("%d\\n", x);
    } else if (op == '-') {
      x = a - b;
      printf("%d\\n", x);
    } else if (op == '*') {
      x = a * b;
      printf("%d\\n", x);
    } else if (op == '/') {
      x = a / b;
      printf("%d\\n", x);
    } else {
      break;
    }
  }
  return 0;
}


#include <stdio.h>
int main(void) {
  int a, b, flag = 0;
  char op;

  while (flag == 0) {
    scanf("%d %c %d", &a, &op, &b);
    if (op == '?')
      flag = 1;
    else if (op == '+')
      printf("%d\\n", (a + b));
    else if (op == '-')
      printf("%d\\n", (a - b));
    else if (op == '/')
      printf("%d\\n", (a / b));
    else if (op == '*')
      printf("%d\\n", (a * b));
  }
  return 1;
}

#include <stdio.h>
int main(void) {
  int a, b, flag = 0;
  char op;

  while (flag == 0) {
    scanf("%d %c %d", &a, &op, &b);
    if (op == '?')
      flag = 1;
    else if (op == '+')
      printf("%d\\n", (a + b));
    else if (op == '-')
      printf("%d\\n", (a - b));
    else if (op == '/')
      printf("%d\\n", (a / b));
    else if (op == '*')
      printf("%d\\n", (a * b));
  }
}


#include <iostream>
#include <stdio.h>

using namespace std;
int main() {
  int a, b, c, d, h, i;
  char e, g, f;
  while (scanf("%d%c%c%c%d", &a, &c, &g, &d, &b)) {
    if (g == '?' && a == 0 && b == 0) {
      return 0;
    } else if (g == '+') {
      c = a + b;
      cout << c << endl;
    } else if (g == '-') {
      d = a - b;
      cout << d << endl;
    } else if (g == '*') {
      h = a * b;
      cout << h << endl;
    } else if (g == '/') {
      i = a / b;
      cout << i << endl;
    }
  }
}

#include <iostream>
#include <stdio.h>

using namespace std;
int main() {
  int a, b, c, d, h, i;
  char e, g, f;
  while (scanf("%d%c%c%c%d", &a, &c, &g, &d, &b)) {
    if (g == '?') {
      return 0;
    } else if (g == '+') {
      c = a + b;
      cout << c << endl;
    } else if (g == '-') {
      d = a - b;
      cout << d << endl;
    } else if (g == '*') {
      h = a * b;
      cout << h << endl;
    } else if (g == '/') {
      i = a / b;
      cout << i << endl;
    }
  }
}


#define _USE_MATH_DEFINES
#include <iostream>
#include <math.h>
#include <stdio.h>

using namespace std;

int main() {
  int a[10000], b[10000];
  string c[10000];

  int i = 0;

  while (true) {
    scanf("%d %s %d", &a[i], &c[i], &b[i]);
    if (c[i] == "?")
      break;
    i++;
  }

  for (int j = 0; j < i; j++) {
    if (c[j] == "+")
      printf("%d\\n", a[i] + b[i]);
    else if (c[j] == "-")
      printf("%d\\n", a[i] - b[i]);
    else if (c[j] == "*")
      printf("%d\\n", a[i] * b[i]);
    else
      printf("%d\\n", a[i] / b[i]);
  }
}

#include <stdio.h>

int main() {
  int a, b;
  char op;
  while (1) {
    scanf("%d %c %d", &a, &op, &b);
    if (op == '?') {
      break;
    } else if (op == '+') {
      printf("%d\\n", a + b);
    } else if (op == '-') {
      printf("%d\\n", a - b);
    } else if (op == '*') {
      printf("%d\\n", a * b);
    } else if (op == '/') {
      printf("%d\\n", a / b);
    }
  }
  return 0;
}


/*
    ????????°??§???????????¨????????????
*/

#include <algorithm>
#include <ctype.h>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <time.h>
#include <vector>
#define LLU unsigned long long int
#define LL long long int
#define LD long double
using namespace std;
#define LLUmax ULLONG_MAX
#define LLmax LLONG_MAX
#define dmax INT_MAX
#define vd vector<int>
#define vLL vector<long long int>
#define vLLU vector<unsigned long long int>
#define pb push_back
#define mp make_pair
#define fi first
#define sec second
#define debug printf("asd\\n")
#define debugd(a) printf("--%d\\n", a)
#define debugdd(a, b) printf("--%d %d\\n", a, b)
#define debugarr(a, b)                                                         \\
  for (int i = 0; i < b; i++)                                                  \\
    printf("%d ", a[i]);                                                       \\
  printf("\\n")
#define newline printf("\\n")
#define forin(a, b, c) for (int a = b; a < c; a++)
#define forde(a, b, c) for (int a = b; a < c; a--)

inline void scd(int &a) { scanf("%d", &a); }
inline void scdd(int &a, int &b) { scanf("%d %d", &a, &b); }
inline void sctd(int &a, int &b, int &c) { scanf("%d %d %d", &a, &b, &c); }
inline void scdlld(long int &a, long int &b) { scanf("%I64d %I64d", &a, &b); }
inline void sclld(long long int &a) { scanf("%I64d", &a); }

#define scarrd(a, b)                                                           \\
  for (int i = 0; i < b; i++)                                                  \\
  scanf("%d", &a[i])
#define prdlld(a, b) printf("%I64d %I64d", a, b)
#define prdd(a, b) printf("%d %d", a, b)
#define prd(a) printf("%d", a)
#define prarr(a, b)                                                            \\
  for (int i = 0; i < b; i++)                                                  \\
  printf("%d ", a[i])
#define iniarr(a, b)                                                           \\
  for (int i = 0; i < b; i++)                                                  \\
  a[i] = 0
#define arr(a, b) int *a = (int *)malloc(b * sizeof(int))
#define llarr(a, b)                                                            \\
  long long int *a = (long long int *)malloc(b * sizeof(long long int))
#define st(a, b) char *a = (char *)malloc(b * sizeof(char))
#define grav 9.8
#define pi 3.14159265

int main() {
  LL a, c;
  char b;
  scanf("%lld %c %lld", &a, &b, &c);
  while (a != 0 || b != '?' || c != 0) {
    if (b == '+')
      printf("%lld\\n", a + c);
    else if (b == '-')
      printf("%lld\\n", a - c);
    else if (b == '*')
      printf("%lld\\n", a * c);
    else if (b == '/')
      printf("%lld\\n", a / c);
    scanf("%lld %c %lld", &a, &b, &c);
  }
  return 0;
}

/*
    ????????°??§???????????¨????????????
*/

#include <algorithm>
#include <ctype.h>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <time.h>
#include <vector>
#define LLU unsigned long long int
#define LL long long int
#define LD long double
using namespace std;
#define LLUmax ULLONG_MAX
#define LLmax LLONG_MAX
#define dmax INT_MAX
#define vd vector<int>
#define vLL vector<long long int>
#define vLLU vector<unsigned long long int>
#define pb push_back
#define mp make_pair
#define fi first
#define sec second
#define debug printf("asd\\n")
#define debugd(a) printf("--%d\\n", a)
#define debugdd(a, b) printf("--%d %d\\n", a, b)
#define debugarr(a, b)                                                         \\
  for (int i = 0; i < b; i++)                                                  \\
    printf("%d ", a[i]);                                                       \\
  printf("\\n")
#define newline printf("\\n")
#define forin(a, b, c) for (int a = b; a < c; a++)
#define forde(a, b, c) for (int a = b; a < c; a--)

inline void scd(int &a) { scanf("%d", &a); }
inline void scdd(int &a, int &b) { scanf("%d %d", &a, &b); }
inline void sctd(int &a, int &b, int &c) { scanf("%d %d %d", &a, &b, &c); }
inline void scdlld(long int &a, long int &b) { scanf("%I64d %I64d", &a, &b); }
inline void sclld(long long int &a) { scanf("%I64d", &a); }

#define scarrd(a, b)                                                           \\
  for (int i = 0; i < b; i++)                                                  \\
  scanf("%d", &a[i])
#define prdlld(a, b) printf("%I64d %I64d", a, b)
#define prdd(a, b) printf("%d %d", a, b)
#define prd(a) printf("%d", a)
#define prarr(a, b)                                                            \\
  for (int i = 0; i < b; i++)                                                  \\
  printf("%d ", a[i])
#define iniarr(a, b)                                                           \\
  for (int i = 0; i < b; i++)                                                  \\
  a[i] = 0
#define arr(a, b) int *a = (int *)malloc(b * sizeof(int))
#define llarr(a, b)                                                            \\
  long long int *a = (long long int *)malloc(b * sizeof(long long int))
#define st(a, b) char *a = (char *)malloc(b * sizeof(char))
#define grav 9.8
#define pi 3.14159265

int main() {
  LL a, c;
  char b;
  scanf("%lld %c %lld", &a, &b, &c);
  while (b != '?') {
    if (b == '+')
      printf("%lld\\n", a + c);
    else if (b == '-')
      printf("%lld\\n", a - c);
    else if (b == '*')
      printf("%lld\\n", a * c);
    else if (b == '/')
      printf("%lld\\n", a / c);
    scanf("%lld %c %lld", &a, &b, &c);
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int a, b;
  char c;
  while (1) {
    cin >> a >> c >> b;
    if (a == b && c == '?')
      return 0;

    if (c == '+') {
      cout << a + b;
    } else if (c == '-') {
      cout << a - b;
    } else if (c == '*') {
      cout << a * b;
    } else if (c == '/') {
      cout << a / b;
    }
    cout << endl;
  }

  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int a, b;
  char c;
  while (1) {
    cin >> a >> c >> b;
    if (c == '?')
      return 0;

    if (c == '+') {
      cout << a + b;
    } else if (c == '-') {
      cout << a - b;
    } else if (c == '*') {
      cout << a * b;
    } else if (c == '/') {
      cout << a / b;
    }
    cout << endl;
  }

  return 0;
}


#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b, X;
  string d;
  while (1) {
    cin >> a >> d >> b;
    if (d == " ?")
      break;
    if (d == "+")
      X = a + b;
    if (d == "-")
      X = a - b;
    if (d == "*")
      X = a * b;
    if (d == "/")
      X = a / b;
    cout << X << endl;
  }

  return (0);
}

#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b, X;
  string d;
  while (1) {
    cin >> a >> d >> b;
    if (d == "?")
      break;
    if (d == "+")
      X = a + b;
    if (d == "-")
      X = a - b;
    if (d == "*")
      X = a * b;
    if (d == "/")
      X = a / b;
    cout << X << endl;
  }

  return (0);
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;

  while (1) {
    cin >> a >> b >> op;
    if (op == '?')
      break;

    if (op == '+')
      cout << a + b << endl;
    else if (op == '-')
      cout << a - b << endl;
    else if (op == '*')
      cout << a * b << endl;
    else if (op == '/')
      cout << a / b << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;

  while (1) {
    cin >> a >> op >> b;
    if (op == '?')
      break;

    if (op == '+')
      cout << a + b << endl;
    else if (op == '-')
      cout << a - b << endl;
    else if (op == '*')
      cout << a * b << endl;
    else if (op == '/')
      cout << a / b << endl;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  char c;
  int l[100];
  for (int i = 0;; i++) {
    cin >> a >> c >> b;
    switch (c) {
    case '+':
      l[i] = a + b;
      continue;
    case '-':
      l[i] = a - b;
      continue;
    case '*':
      l[i] = a * b;
      continue;
    case '/':
      l[i] = a / b;
      continue;
    case '?':
      for (int j = 0; j < i; j++) {
        cout << l[j] << endl;
      }
      break;
    default:
      break;
    }
  }
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  char c;
  int l[100];
  for (int i = 0;; i++) {
    cin >> a >> c >> b;
    if (c == '+') {
      l[i] = a + b;
    } else if (c == '-') {
      l[i] = a - b;
    } else if (c == '*') {
      l[i] = a * b;
    } else if (c == '/') {
      l[i] = a / b;
    } else if (c == '?') {
      for (int j = 0; j < i; j++) {
        cout << l[j] << endl;
      }
      break;
    }
  }
}


#include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;

#define PI 3.14159265358979323

int main(int argc, char *argv[]) {
  char op;
  int a, b;

  while (1) {
    cin >> a >> b >> op;
    if (op == '?')
      break;

    switch (op) {
    case '+':
      cout << a + b << endl;
      break;
    case '-':
      cout << a - b << endl;
      break;
    case '*':
      cout << a * b << endl;
      break;
    case '/':
      cout << a / b << endl;
      break;
    }
  }

  return 0;
}

#include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;

#define PI 3.14159265358979323

int main(int argc, char *argv[]) {
  char op;
  int a, b;

  while (1) {
    cin >> a >> op >> b;
    if (op == '?')
      break;

    switch (op) {
    case '+':
      cout << a + b << endl;
      break;
    case '-':
      cout << a - b << endl;
      break;
    case '*':
      cout << a * b << endl;
      break;
    case '/':
      cout << a / b << endl;
      break;
    }
  }

  return 0;
}


#include <iostream>
using namespace std;

int main(void) {
  int a, b;
  char op;
  while (1) {
    cin >> a >> op >> b;
    if (a == 0 and b == 0)
      break;
    if (op == '+')
      cout << a + b << endl;
    if (op == '-')
      cout << a - b << endl;
    if (op == '*')
      cout << a * b << endl;
    if (op == '/')
      cout << a / b << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main(void) {
  int a, b;
  char op;
  while (1) {
    cin >> a >> op >> b;
    if (op == '?')
      break;
    if (op == '+')
      cout << a + b << endl;
    if (op == '-')
      cout << a - b << endl;
    if (op == '*')
      cout << a * b << endl;
    if (op == '/')
      cout << a / b << endl;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  while (1) {
    cin >> a >> op >> b;
    switch (op) {
    case '?':
      break;
    case '+':
      a += b;
      cout << a << "\\n";
      break;
    case '-':
      a -= b;
      cout << a << "\\n";
      break;
    case '/':
      a /= b;
      cout << a << "\\n";
      break;
    case '*':
      a *= b;
      cout << a << "\\n";
      break;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  while (1) {
    cin >> a >> op >> b;
    if (op == '?')
      break;
    switch (op) {
    case '+':
      a += b;
      cout << a << "\\n";
      break;
    case '-':
      a -= b;
      cout << a << "\\n";
      break;
    case '/':
      a /= b;
      cout << a << "\\n";
      break;
    case '*':
      a *= b;
      cout << a << "\\n";
      break;
    }
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {

  int a, b, op, result;

  while (1) {

    cin >> a >> op >> b;

    if (op == '?')
      break;

    if (op == '+') {
      result = a + b;
      cout << result << "\\n";
    } else if (op == '-') {
      result = a - b;
      cout << result << "\\n";
    } else if (op == '*') {
      result = a * b;
      cout << result << "\\n";
    } else if (op == '/') {
      result = a / b;
      cout << result << "\\n";
    }
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {

  int a, b, result;
  char op;

  while (1) {

    cin >> a >> op >> b;

    if (op == '?')
      break;

    if (op == '+') {
      result = a + b;
      cout << result << "\\n";
    } else if (op == '-') {
      result = a - b;
      cout << result << "\\n";
    } else if (op == '*') {
      result = a * b;
      cout << result << "\\n";
    } else if (op == '/') {
      result = a / b;
      cout << result << "\\n";
    }
  }
  return 0;
}


#include <algorithm>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <string>

using namespace std;

int main() {
  int a, b;
  string op;
  cin >> a >> op >> b;
  while (true) {
    if (op == "+")
      cout << a + b << endl;
    else if (op == "-")
      cout << a - b << endl;
    else if (op == "*")
      cout << a * b << endl;
    else if (op == "/")
      cout << a / b << endl;
    else
      return 0;
  }
}

#include <algorithm>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <string>

using namespace std;

int main() {
  int a, b;
  string op;
  while (true) {
    cin >> a >> op >> b;
    if (op == "+")
      cout << a + b << endl;
    else if (op == "-")
      cout << a - b << endl;
    else if (op == "*")
      cout << a * b << endl;
    else if (op == "/")
      cout << a / b << endl;
    else
      return 0;
  }
}


#include <iostream>
using namespace std;
int main() {
  string op;
  int a, b;
  op = "+";
  while (op != "?") {
    cin >> a >> op >> b;
    if (op == "+") {
      cout << a + b << endl;
    } else if (op == "-") {
      cout << a - b << endl;
    } else if (op == "*") {
      cout << a * b << endl;
    } else {
      cout << a / b << endl;
    }
  }
}

#include <iomanip>
#include <iostream>

using namespace std;
int main() {
  int a, b;
  string op;
  while (true) {
    cin >> a >> op >> b;
    if (op == "?") {
      return 0;
    } else {
      if (op == "+") {
        cout << a + b << endl;
      } else if (op == "-") {
        cout << a - b << endl;
      } else if (op == "*") {
        cout << a * b << endl;
      } else {
        cout << a / b << endl;
      }
    }
  }
}


#include <iostream>
using namespace std;
int main() {
  int a, b;
  char op;

  while (1) {
    cin >> a >> op >> b;
    if (op == '?' && a == 0 && b == 0)
      break;
    else if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }
  }

  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int a, b;
  char op;
  while (1) {
    cin >> a >> op >> b;
    if (op == '?')
      break;
    else if (op == '+')
      cout << a + b << endl;
    else if (op == '-')
      cout << a - b << endl;
    else if (op == '*')
      cout << a * b << endl;
    else if (op == '/')
      cout << a / b << endl;
  }
}


#include <iostream>
int main() {
  int a, b;
  std::string op;
  std::cin >> a >> op >> b;
  while (1) {
    if (op == "?")
      break;
    if (op == "+") {
      std::cout << a + b << std::endl;
    } else if (op == "-") {
      std::cout << a - b << std::endl;
    } else if (op == "*") {
      std::cout << a * b << std::endl;
    } else if (op == "/") {
      std::cout << a / b << std::endl;
    }
  }

  return 0;
}

#include <iostream>
int main() {
  int a, b;
  std::string op;
  while (1) {
    std::cin >> a >> op >> b;
    if (op == "?")
      break;
    if (op == "+") {
      std::cout << a + b << std::endl;
    } else if (op == "-") {
      std::cout << a - b << std::endl;
    } else if (op == "*") {
      std::cout << a * b << std::endl;
    } else if (op == "/") {
      std::cout << a / b << std::endl;
    }
  }

  return 0;
}


#ifdef LOCAL
#pragma GCC optimize("O0")
#else
#pragma GCC optimize("O3")
#endif
#include <bits/stdc++.h>

using namespace std;
using namespace std::placeholders;

using ll = long long;
const int INF = 1e9 + 7;
const ll INF_LL = 1e18 + 7;

#define __overload3(_1, _2, _3, name, ...) name
#define rep(...)                                                               \\
  __overload3(__VA_ARGS__, repFromUntil, repUntil, repeat)(__VA_ARGS__)
#define repeat(times) repFromUntil(__name, 0, times)
#define repUntil(name, times) repFromUntil(name, 0, times)
#define repFromUntil(name, from, until)                                        \\
  for (int name = from, name##__until = (until); name < name##__until; name++)
#define repFromTo(name, from, to) repFromUntil(name, from, to + 1)
#define repr(...)                                                              \\
  __overload3(__VA_ARGS__, reprFromUntil, reprUntil, repeat)(__VA_ARGS__)
#define reprUntil(name, times) reprFromUntil(name, 0, times)
#define reprFromUntil(name, from, until)                                       \\
  for (int name = until - 1, name##__from = (from); name >= name##__from;      \\
       name--)
#define reprFromTo(name, from, to) reprFromUntil(name, from, to + 1)

#define debugos cout
#ifdef LOCAL
#define debug(v)                                                               \\
  {                                                                            \\
    printf("L%d %s > ", __LINE__, #v);                                         \\
    debugos << (v) << endl;                                                    \\
  }
#define debugv(v)                                                              \\
  {                                                                            \\
    printf("L%d %s > ", __LINE__, #v);                                         \\
    for (auto e : (v)) {                                                       \\
      debugos << e << " ";                                                     \\
    }                                                                          \\
    debugos << endl;                                                           \\
  }
#define debuga(m, w)                                                           \\
  {                                                                            \\
    printf("L%d %s > ", __LINE__, #m);                                         \\
    for (int x = 0; x < (w); x++) {                                            \\
      debugos << (m)[x] << " ";                                                \\
    }                                                                          \\
    debugos << endl;                                                           \\
  }
#define debugaa(m, h, w)                                                       \\
  {                                                                            \\
    printf("L%d %s >\\n", __LINE__, #m);                                        \\
    for (int y = 0; y < (h); y++) {                                            \\
      for (int x = 0; x < (w); x++) {                                          \\
        debugos << (m)[y][x] << " ";                                           \\
      }                                                                        \\
      debugos << endl;                                                         \\
    }                                                                          \\
  }
#else
#define debug(v)                                                               \\
  {}
#define debugv(v)                                                              \\
  {}
#define debuga(m, w)                                                           \\
  {}
#define debugaa(m, h, w)                                                       \\
  {}
#endif

#define newl "\\n"

#define all(iter) begin(iter), end(iter)

#if defined(_WIN32) || defined(_WIN64)
#define getchar_unlocked _getchar_nolock
#define putchar_unlocked _putchar_nolock
#elif defined(__GNUC__)
#else
#define getchar_unlocked getchar
#define putchar_unlocked putchar
#endif

template <class T> inline bool chmin(T &var, T x) {
  if (var > x) {
    var = x;
    return true;
  } else
    return false;
}
template <class T> inline bool chmax(T &var, T x) {
  if (var < x) {
    var = x;
    return true;
  } else
    return false;
}

class MyScanner {
public:
  template <typename T> void input_integer(T &var) {
    var = 0;
    T sign = 1;
    int cc = getchar_unlocked();
    for (; cc < '0' || '9' < cc; cc = getchar_unlocked())
      if (cc == '-')
        sign = -1;
    for (; '0' <= cc && cc <= '9'; cc = getchar_unlocked())
      var = (var << 3) + (var << 1) + cc - '0';
    var = var * sign;
  }
  inline int c() { return getchar_unlocked(); }
  inline MyScanner &operator>>(char &var) {
    var = c();
    return *this;
  }
  inline MyScanner &operator>>(int &var) {
    input_integer<int>(var);
    return *this;
  }
  inline MyScanner &operator>>(ll &var) {
    input_integer<ll>(var);
    return *this;
  }
  inline MyScanner &operator>>(string &var) {
    int cc = getchar_unlocked();
    for (; !isvisiblechar(cc); cc = getchar_unlocked())
      ;
    for (; isvisiblechar(cc); cc = getchar_unlocked())
      var.push_back(cc);
    return *this;
  }
  inline operator int() {
    int n;
    *this >> n;
    return n;
  }
  inline operator ll() {
    ll n;
    *this >> n;
    return n;
  }

private:
  inline int isvisiblechar(int c) { return 0x21 <= c && c <= 0x7E; }
};
class MyPrinter {
public:
  template <typename T> void output_integer(T var) {
    if (var == 0) {
      putchar_unlocked('0');
      return;
    }
    if (var < 0)
      putchar_unlocked('-'), var = -var;
    char stack[32];
    int stack_p = 0;
    while (var)
      stack[stack_p++] = '0' + (var % 10), var /= 10;
    while (stack_p)
      putchar_unlocked(stack[--stack_p]);
  }
  inline MyPrinter &operator<<(char c) {
    putchar_unlocked(c);
    return *this;
  }
  inline MyPrinter &operator<<(int var) {
    output_integer<int>(var);
    return *this;
  }
  inline MyPrinter &operator<<(ll var) {
    output_integer<ll>(var);
    return *this;
  }
  inline MyPrinter &operator<<(char *str_p) {
    while (*str_p)
      putchar_unlocked(*(str_p++));
    return *this;
  }
  inline MyPrinter &operator<<(const char *str_p) {
    while (*str_p)
      putchar_unlocked(*(str_p++));
    return *this;
  }
  inline MyPrinter &operator<<(const string &str) {
    const char *p = str.c_str();
    const char *l = p + str.size();
    while (p < l)
      putchar_unlocked(*p++);
    return *this;
  }
};
MyScanner IN;
MyPrinter OUT;

int main() {
  int a, b;
  char op;
  while (IN >> a >> b >> op, op != '?')
    OUT << (op == '+'   ? a + b
            : op == '-' ? a - b
            : op == '*' ? a * b
            : op == '/' ? a / b
                        : 0)
        << newl;
}

#ifdef LOCAL
#pragma GCC optimize("O0")
#else
#pragma GCC optimize("O3")
#endif
#include <bits/stdc++.h>

using namespace std;
using namespace std::placeholders;

using ll = long long;
const int INF = 1e9 + 7;
const ll INF_LL = 1e18 + 7;

#define __overload3(_1, _2, _3, name, ...) name
#define rep(...)                                                               \\
  __overload3(__VA_ARGS__, repFromUntil, repUntil, repeat)(__VA_ARGS__)
#define repeat(times) repFromUntil(__name, 0, times)
#define repUntil(name, times) repFromUntil(name, 0, times)
#define repFromUntil(name, from, until)                                        \\
  for (int name = from, name##__until = (until); name < name##__until; name++)
#define repFromTo(name, from, to) repFromUntil(name, from, to + 1)
#define repr(...)                                                              \\
  __overload3(__VA_ARGS__, reprFromUntil, reprUntil, repeat)(__VA_ARGS__)
#define reprUntil(name, times) reprFromUntil(name, 0, times)
#define reprFromUntil(name, from, until)                                       \\
  for (int name = until - 1, name##__from = (from); name >= name##__from;      \\
       name--)
#define reprFromTo(name, from, to) reprFromUntil(name, from, to + 1)

#define debugos cout
#ifdef LOCAL
#define debug(v)                                                               \\
  {                                                                            \\
    printf("L%d %s > ", __LINE__, #v);                                         \\
    debugos << (v) << endl;                                                    \\
  }
#define debugv(v)                                                              \\
  {                                                                            \\
    printf("L%d %s > ", __LINE__, #v);                                         \\
    for (auto e : (v)) {                                                       \\
      debugos << e << " ";                                                     \\
    }                                                                          \\
    debugos << endl;                                                           \\
  }
#define debuga(m, w)                                                           \\
  {                                                                            \\
    printf("L%d %s > ", __LINE__, #m);                                         \\
    for (int x = 0; x < (w); x++) {                                            \\
      debugos << (m)[x] << " ";                                                \\
    }                                                                          \\
    debugos << endl;                                                           \\
  }
#define debugaa(m, h, w)                                                       \\
  {                                                                            \\
    printf("L%d %s >\\n", __LINE__, #m);                                        \\
    for (int y = 0; y < (h); y++) {                                            \\
      for (int x = 0; x < (w); x++) {                                          \\
        debugos << (m)[y][x] << " ";                                           \\
      }                                                                        \\
      debugos << endl;                                                         \\
    }                                                                          \\
  }
#else
#define debug(v)                                                               \\
  {}
#define debugv(v)                                                              \\
  {}
#define debuga(m, w)                                                           \\
  {}
#define debugaa(m, h, w)                                                       \\
  {}
#endif

#define newl "\\n"

#define all(iter) begin(iter), end(iter)

#if defined(_WIN32) || defined(_WIN64)
#define getchar_unlocked _getchar_nolock
#define putchar_unlocked _putchar_nolock
#elif defined(__GNUC__)
#else
#define getchar_unlocked getchar
#define putchar_unlocked putchar
#endif

template <class T> inline bool chmin(T &var, T x) {
  if (var > x) {
    var = x;
    return true;
  } else
    return false;
}
template <class T> inline bool chmax(T &var, T x) {
  if (var < x) {
    var = x;
    return true;
  } else
    return false;
}

class MyScanner {
public:
  template <typename T> void input_integer(T &var) {
    var = 0;
    T sign = 1;
    int cc = getchar_unlocked();
    for (; cc < '0' || '9' < cc; cc = getchar_unlocked())
      if (cc == '-')
        sign = -1;
    for (; '0' <= cc && cc <= '9'; cc = getchar_unlocked())
      var = (var << 3) + (var << 1) + cc - '0';
    var = var * sign;
  }
  inline int c() { return getchar_unlocked(); }
  inline MyScanner &operator>>(char &var) {
    var = c();
    return *this;
  }
  inline MyScanner &operator>>(int &var) {
    input_integer<int>(var);
    return *this;
  }
  inline MyScanner &operator>>(ll &var) {
    input_integer<ll>(var);
    return *this;
  }
  inline MyScanner &operator>>(string &var) {
    int cc = getchar_unlocked();
    for (; !isvisiblechar(cc); cc = getchar_unlocked())
      ;
    for (; isvisiblechar(cc); cc = getchar_unlocked())
      var.push_back(cc);
    return *this;
  }
  inline operator int() {
    int n;
    *this >> n;
    return n;
  }
  inline operator ll() {
    ll n;
    *this >> n;
    return n;
  }

private:
  inline int isvisiblechar(int c) { return 0x21 <= c && c <= 0x7E; }
};
class MyPrinter {
public:
  template <typename T> void output_integer(T var) {
    if (var == 0) {
      putchar_unlocked('0');
      return;
    }
    if (var < 0)
      putchar_unlocked('-'), var = -var;
    char stack[32];
    int stack_p = 0;
    while (var)
      stack[stack_p++] = '0' + (var % 10), var /= 10;
    while (stack_p)
      putchar_unlocked(stack[--stack_p]);
  }
  inline MyPrinter &operator<<(char c) {
    putchar_unlocked(c);
    return *this;
  }
  inline MyPrinter &operator<<(int var) {
    output_integer<int>(var);
    return *this;
  }
  inline MyPrinter &operator<<(ll var) {
    output_integer<ll>(var);
    return *this;
  }
  inline MyPrinter &operator<<(char *str_p) {
    while (*str_p)
      putchar_unlocked(*(str_p++));
    return *this;
  }
  inline MyPrinter &operator<<(const char *str_p) {
    while (*str_p)
      putchar_unlocked(*(str_p++));
    return *this;
  }
  inline MyPrinter &operator<<(const string &str) {
    const char *p = str.c_str();
    const char *l = p + str.size();
    while (p < l)
      putchar_unlocked(*p++);
    return *this;
  }
};
MyScanner IN;
MyPrinter OUT;

int main() {
  int a, b;
  char op;
  while (IN >> a >> op >> b, op != '?')
    OUT << (op == '+'   ? a + b
            : op == '-' ? a - b
            : op == '*' ? a * b
            : op == '/' ? a / b
                        : 0)
        << newl;
}


#include <bits/stdc++.h>

using namespace std;

int main(int argc, char const *argv[]) {
  int a, b, ans;
  char op;
  cin >> a >> op >> b;
  while (true) {
    if (op == '?') {
      break;
    }

    if (op == '+') {
      ans = a + b;
    } else if (op == '-') {
      ans = a - b;
    } else if (op == '*') {
      ans = a * b;
    } else if (op == '/') {
      ans = a / b;
    }
    cout << ans << endl;
  }

  return 0;
}

#include <bits/stdc++.h>

using namespace std;

int main(int argc, char const *argv[]) {
  int a, b, ans;
  char op;
  while (true) {
    cin >> a >> op >> b;
    if (op == '?') {
      break;
    }

    if (op == '+') {
      ans = a + b;
    } else if (op == '-') {
      ans = a - b;
    } else if (op == '*') {
      ans = a * b;
    } else if (op == '/') {
      ans = a / b;
    }
    cout << ans << endl;
  }

  return 0;
}


#include <iostream>

using namespace std;

int main(int argc, char **argv) {
  int x, y;
  char op;
  cin >> x >> op >> y;

  bool hasEnd = false;

  while (!hasEnd) {
    int result;
    switch (op) {
    case '+':
      result = x + y;
      break;
    case '-':
      result = x - y;
      break;
    case '*':
      result = x * y;
      break;
    case '/':
      result = x / y;
      break;
    case '?':
      hasEnd = true;
      break;
    }
    if (!hasEnd)
      cout << result << endl;
  }

  return 0;
}

#include <iostream>

using namespace std;

int main(int argc, char **argv) {
  int x, y;
  char op;

  bool hasEnd = false;

  while (!hasEnd) {
    int result;
    cin >> x >> op >> y;
    switch (op) {
    case '+':
      result = x + y;
      break;
    case '-':
      result = x - y;
      break;
    case '*':
      result = x * y;
      break;
    case '/':
      result = x / y;
      break;
    case '?':
      hasEnd = true;
      break;
    }
    if (!hasEnd) {
      cout << result << endl;
    }
  }

  return 0;
}


#include <cstdio>
#include <iostream>

using namespace std;

int main() {
  int a, b, c;
  while (1) {
    cin >> a >> b >> c;
    if (b == '?')
      break;
    if (b == '+')
      cout << a + b;
    else if (b == '-')
      cout << a - b;
    else if (b == '*')
      cout << a * b;
    else
      cout << a / b;
    cout << endl;
  }
}

#include <cstdio>
#include <iostream>

using namespace std;

int main() {
  int a, c;
  char b;
  while (1) {
    cin >> a >> b >> c;
    if (b == '?')
      break;
    if (b == '+')
      cout << a + c;
    else if (b == '-')
      cout << a - c;
    else if (b == '*')
      cout << a * c;
    else
      cout << a / c;
    cout << endl;
  }
}


#include <cstdio>

using namespace std;

int main() {
  while (true) {
    int a, b;
    char op;
    scanf("&d %c %d", &a, &op, &b);
    switch (op) {
    case '+':
      printf("%d\\n", a + b);
      break;
    case '-':
      printf("%d\\n", a - b);
      break;
    case '*':
      printf("%d\\n", a * b);
      break;
    case '/':
      printf("%d\\n", a / b);
      break;
    case '?':
      return 0;
    }
  }
  return 0;
}

#include <cstdio>
using namespace std;

int main() {
  while (1) {
    int a, b, value;
    char op;
    scanf("%d %c %d", &a, &op, &b);
    switch (op) {
    case '+':
      value = a + b;
      break;
    case '-':
      value = a - b;
      break;
    case '*':
      value = a * b;
      break;
    case '/':
      value = a / b;
      break;
    case '?':
      return 0;
    }
    printf("%d\\n", value);
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int a, b, op, ans;
  while (1) {
    cin >> a >> op >> b;
    switch (op) {
    case '+':
      ans = a + b;
      break;
    case '-':
      ans = a - b;
      break;
    case '*':
      ans = a * b;
      break;
    case '/':
      ans = a / b;
      break;
    }
    if (op == '?')
      break;
    cout << ans << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int a, b;
  char op;
  int answer;
  for (;;) {
    cin >> a >> op >> b;
    switch (op) {
    case '+':
      answer = a + b;
      break;
    case '-':
      answer = a - b;
      break;
    case '*':
      answer = a * b;
      break;
    case '/':
      answer = a / b;
      break;
    }
    if (op == '?')
      break;
    cout << answer << endl;
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  string op;

  cin >> a >> op >> b;

  while (1) {
    if (op == "?") {
      break;
    } else if (op == "+") {
      cout << a + b << endl;
    } else if (op == "-") {
      cout << a - b << endl;
    } else if (op == "*") {
      cout << a * b << endl;
    } else if (op == "/") {
      cout << a / b << endl;
    }
  }

  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  string op;

  while (1) {
    cin >> a >> op >> b;
    if (op == "+") {
      cout << a + b << endl;
    } else if (op == "-") {
      cout << a - b << endl;
    } else if (op == "*") {
      cout << a * b << endl;
    } else if (op == "/") {
      cout << a / b << endl;
    }
    if (op == "?")
      break;
  }

  return 0;
}


#include <iostream>
#include <string>

using namespace std;

int main() {

  int x, y;
  string str;

  while (true) {
    cin >> x >> y;
    cin >> str;

    if (str == "?")
      break;

    if (str == "+")
      cout << x + y << endl;
    if (str == "-")
      cout << x - y << endl;
    if (str == "*")
      cout << x * y << endl;
    if (str == "/")
      cout << x / y << endl;
  }
}

#include <iostream>
#include <string>

using namespace std;

int main() {

  int x, y;
  string str;

  while (true) {
    cin >> x >> str >> y;

    if (str == "?")
      break;
    if (str == "+")
      cout << x + y << endl;
    if (str == "-")
      cout << x - y << endl;
    if (str == "*")
      cout << x * y << endl;
    if (str == "/")
      cout << x / y << endl;
  }
}


#include <iostream>
using namespace std;

int main(void) {
  int a, b;
  char op = '0';

  while (op != '?') {
    cin >> a >> op >> b;

    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else {
      cout << a / b << endl;
    }
  }

  return 0;
}

#include <iostream>
using namespace std;

int main(void) {
  int a, b;
  char op = '0';

  while (op != '?') {
    cin >> a >> op >> b;

    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }
  }

  return 0;
}


#include <stdio.h>
int main() {
  int a, b;
  char op;
  while (op != '?') {
    scanf("%d %c %d", &a, &op, &b);
    if (op = '+') {
      printf("%d\\n", a + b);
    }
    if (op = '-') {
      printf("%d\\n", a - b);
    }
    if (op = '*') {
      printf("%d\\n", a * b);
    }
    if (op = '/') {
      printf("%d\\n", a / b);
    }
  }
  return 0;
}

#include <stdio.h>
int main() {
  int a, b;
  char op;
  while (op != '?') {
    scanf("%d %c %d", &a, &op, &b);
    if (op == '+') {
      printf("%d\\n", a + b);
    }
    if (op == '-') {
      printf("%d\\n", a - b);
    }
    if (op == '*') {
      printf("%d\\n", a * b);
    }
    if (op == '/') {
      printf("%d\\n", a / b);
    }
  }
  return 0;
}


#include <cstdio>
#include <iostream>
using namespace std;

#define MAX 20000

int main(void) {
  int a, b, flag = 0;
  char op;
  while (1) {
    do {
      cin >> a >> op >> b;
    } while (a < 0 || a > MAX || b < 0 ||
             b > MAX && op != '+' && op != '-' && op != '*' && op != '/' &&
                 op != '?');

    switch (op) {
    case '+':
      printf("%d\\n", a + b);
      break;
    case '-':
      printf("%d\\n", a - b);
      break;
    case '*':
      printf("%d\\n", a * b);
      break;
    case '/':
      printf("%d\\n", a / b);
      if (b == 0)
        break;
      break;
    case '?':
      if (a == 0 && b == 0)
        flag = 1;
      break;
    }
    if (flag == 1)
      break;
  }
  return 0;
}

#include <cstdio>
#include <iostream>
using namespace std;

#define MAX 20000

int main(void) {
  int a, b, flag = 0;
  char op;
  while (1) {
    do {
      cin >> a >> op >> b;
    } while (a < 0 || a > MAX || b < 0 ||
             b > MAX && op != '+' && op != '-' && op != '*' && op != '/' &&
                 op != '?');

    switch (op) {
    case '+':
      printf("%d\\n", a + b);
      break;
    case '-':
      printf("%d\\n", a - b);
      break;
    case '*':
      printf("%d\\n", a * b);
      break;
    case '/':
      printf("%d\\n", a / b);
      if (b == 0)
        break;
      break;
    case '?':
      flag = 1;
      break;
    }
    if (flag == 1)
      break;
  }
  return 0;
}


#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
// #define shosu(n) setprecision(n)
// #define ENDL endl
using namespace std;
int main() {
  int A, B;
  char s;
  while (cin >> A >> s >> B) {
    if (s == '?')
      break;
    if (s == '+')
      cout << A + B << endl;
    if (s == '-')
      cout << A - B << endl;
    if (s == '*')
      cout << A * B << endl;
    if (s == '/')
      cout << A / B << endl;
  }
  return 9;
}

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
// #define shosu(n) setprecision(n)
// #define ENDL endl
using namespace std;
int main() {
  int A, B;
  char s;
  while (cin >> A >> s >> B) {
    if (s == '?')
      break;
    if (s == '+')
      cout << A + B << endl;
    if (s == '-')
      cout << A - B << endl;
    if (s == '*')
      cout << A * B << endl;
    if (s == '/')
      cout << A / B << endl;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  while (1) {
    int x, y;
    char c;
    cin >> x >> y >> c;

    if (c == '?')
      break;
    int z;
    switch (c) {
    case '+':
      z = x + y;
      break;
    case '-':
      z = x - y;
      break;
    case '*':
      z = x * y;
      break;
    case '/':
      z = x / y;
      break;
    case '%':
      z = x % y;
      break;
    }
    cout << "\\n" << z;
  }

  return 0;
}

#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
  while (1) {
    int x, y;
    char c;
    cin >> x >> c >> y;

    if (c == '?')
      break;
    int z;
    switch (c) {
    case '+':
      z = x + y;
      break;
    case '-':
      z = x - y;
      break;
    case '*':
      z = x * y;
      break;
    case '/':
      z = x / y;
      break;
    case '%':
      z = x % y;
      break;
    }
    printf("%d\\n", z);
  }

  return 0;
}


#include <iostream>

using namespace std;
int main() {
  int a, b;
  char op;
  cin >> a >> b >> op;
  while (op != '?') {
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else {
      cout << a / b << endl;
    }
    cin >> a >> b >> op;
  }
}

#include <iostream>
using namespace std;
int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (op != '?') {
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }
    cin >> a >> op >> b;
  }
}


#include <iostream>
using namespace std;

int main() {

  int a, b, c, d, e, f;
  char op;
  while (true) {
    cin >> a >> op >> b;
    if (op == '?')
      break;
    c = a + b;
    d = a - b;
    e = a * b;
    f = a / b;

    if (op == '+')
      cout << c << "\\n";
    if (op == '-')
      cout << d << "\\n";
    if (op == '*')
      cout << e << "\\n";
    if (op == '/')
      cout << f << "\\n";
  }
}

#include <iostream>
using namespace std;

int main() {

  int a, b, c, d, e, f;
  char op;
  while (true) {
    cin >> a >> op >> b;
    if (op == '?')
      break;
    c = a + b;
    d = a - b;
    e = a * b;
    if (b != 0)
      f = a / b;

    if (op == '+')
      cout << c << "\\n";
    if (op == '-')
      cout << d << "\\n";
    if (op == '*')
      cout << e << "\\n";
    if (op == '/')
      cout << f << "\\n";
  }
}


#include <iostream>
using namespace std;
int main(void) {

  int a, b, s;
  char op;

  while (1) {
    cin >> a >> b >> op;
    if (op == '?')
      break;
    switch (op) {
    case ('+'):
      s = a + b;
      break;
    case ('-'):
      s = a - b;
      break;
    case ('*'):
      s = a * b;
      break;
    case ('/'):
      s = a / b;
      break;
    }
    cout << s << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main(void) {

  int a, b, s;
  char op;

  while (1) {
    cin >> a >> op >> b;
    if (op == '?')
      break;
    switch (op) {
    case ('+'):
      s = a + b;
      break;
    case ('-'):
      s = a - b;
      break;
    case ('*'):
      s = a * b;
      break;
    case ('/'):
      s = a / b;
      break;
    }
    cout << s << endl;
  }
  return 0;
}


#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
  int a, op, b;

  while (1) {
    cin >> a >> op >> b;
    if (op == '+')
      cout << a + b << endl;
    if (op == '-')
      cout << a - b << endl;
    if (op == '*')
      cout << a * b << endl;
    if (op == '/')
      cout << a / b << endl;
    if (op == '?')
      break;
  }
  return 0;
}

#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
  int a, b;
  char op;

  while (1) {
    scanf("%d %c %d", &a, &op, &b);

    if (op == '+') {

      cout << a + b << endl;
    }
    if (op == '-') {

      cout << a - b << endl;
    }
    if (op == '*') {

      cout << a * b << endl;
    }

    if (op == '/') {

      cout << a / b << endl;
    }
    if (op == '?')
      break;
  }

  return 0;
}


#include <iostream>
#include <string>

using namespace std;

int main() {
  while (1 == 1) {
    int a, b;
    string op;
    int result;
    cin >> a >> op >> b;
    if (op == "&")
      break;
    if (op == "+") {
      result = a + b;
      cout << result << endl;
    }
    if (op == "-") {
      result = a - b;
      cout << result << endl;
    }
    if (op == "*") {
      result = a * b;
      cout << result << endl;
    }
    if (op == "/") {
      result = a / b;
      cout << result << endl;
    }
  }
}

#include <iostream>
#include <string>

using namespace std;

int main() {
  while (1 == 1) {
    int a, b;
    string op;
    int result;
    cin >> a >> op >> b;
    if (op == "?")
      break;
    if (op == "+") {
      result = a + b;
      cout << result << endl;
    }
    if (op == "-") {
      result = a - b;
      cout << result << endl;
    }
    if (op == "*") {
      result = a * b;
      cout << result << endl;
    }
    if (op == "/") {
      result = a / b;
      cout << result << endl;
    }
  }
}


#include <iomanip>
#include <iostream>
#include <math.h>
#include <string>

using namespace std;

int main() {

  int a, b;
  string op;
  cin >> a >> op >> b;

  while (1) {
    if (op == "?") {
      break;
    } else if (op == "+") {
      cout << a + b << endl;
    } else if (op == "-") {
      cout << a - b << endl;
    } else if (op == "*") {
      cout << a * b << endl;
    } else if (op == "/") {
      cout << a / b << endl;
    }
  }

  return 0;
}

#include <iostream>

using namespace std;

int main() {

  int a, b;
  char op;

  while (1) {
    cin >> a >> op >> b;
    if (op == '?') {
      break;
    } else if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }
  }

  return 0;
}


#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
int main() {
  double a, b;
  double i;
  string op;
  cin >> a >> op >> b;
  for (;;) {
    if (op == "+") {
      i = a + b;
    } else if (op == "-") {
      i = a - b;
    } else if (op == "*") {
      i = a * b;
    } else if (op == "/") {
      i = (double)a / b;
    } else if (op == "?") {
      break;
    }
    cout << setprecision(6) << i << endl;
  }

  return 0;
}

#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
int main() {
  int a, b;
  int i;
  string op;
  for (;;) {
    cin >> a >> op >> b;
    if (op == "+") {
      i = a + b;
    } else if (op == "-") {
      i = a - b;
    } else if (op == "*") {
      i = a * b;
    } else if (op == "/") {
      i = a / b;
    } else if (op == "?") {
      break;
    }
    cout << i << endl;
  }

  return 0;
}


#include <stdio.h>
int main() {
  int a, b, c, d;
  char op;
  scanf("%d %c %d", &a, &op, &b);
  while (true) {
    if (op == '+') {
      c = a + b;
      printf("%d", &c);
    } else if (op == '-') {
      c = a - b;
      printf("%d", &c);
    } else if (op == '*') {
      c = a * b;
      printf("%d", &c);
    } else if (op == '/') {
      c = 10 * a / b;
      d = c - (c % 10);
      d = d / 10;
      d = c;
      printf("%d", &c);
    }

    else {
      break;
    }
  };

  return 0;
}

#include <stdio.h>
int main() {
  int a, b, c, d;
  char op;
  while (true) {
    scanf("%d %c %d", &a, &op, &b);
    if (op == '+') {
      c = a + b;
      printf("%d\\n", c);
    } else if (op == '-') {
      c = a - b;
      printf("%d\\n", c);
    } else if (op == '*') {
      c = a * b;
      printf("%d\\n", c);
    } else if (op == '/') {
      c = 10 * a / b;
      d = c - (c % 10);
      d = d / 10;
      c = d;
      printf("%d\\n", c);
    }

    else {
      break;
    }
  };

  return 0;
}


#include <iostream>
using std::cin;
using std::cout;
using std::endl;

int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (true) {

    if (op == '+')
      cout << a + b << endl;
    else if (op == '-')
      cout << a - b << endl;
    else if (op == '*')
      cout << a * b << endl;
    else if (op == '/')
      cout << a / b << endl;
    else
      break;
  }
  return 0;
}

#include <iostream>
using std::cin;
using std::cout;
using std::endl;

int main() {
  int a, b;
  char op;
  while (true) {
    cin >> a >> op >> b;
    if (op == '+')
      cout << a + b << endl;
    else if (op == '-')
      cout << a - b << endl;
    else if (op == '*')
      cout << a * b << endl;
    else if (op == '/')
      cout << a / b << endl;
    else
      break;
  }
  return 0;
}


#include <stdio.h>

int main(void) {
  int a, b;
  char op;

  scanf("%d%c*c%d", &a, &op, &b);
  while (op != '?') {
    printf("%d\\n", op == '+'   ? a + b
                   : op == '-' ? a - b
                   : op == '*' ? a * b
                               : a / b);
    scanf("%d%c*c%d", &a, &op, &b);
  }
  return 0;
}

#include <stdio.h>

int main(void) {
  int a, b;
  char str[16];
  char op;

  scanf("%d%s%d", &a, str, &b);
  op = str[0];
  while (op != '?') {
    printf("%d\\n", op == '+'   ? a + b
                   : op == '-' ? a - b
                   : op == '*' ? a * b
                               : a / b);
    scanf("%d%s%d", &a, str, &b);
    op = str[0];
  }
  return 0;
}


#include <stdio.h>
int main() {

  int a, b;
  char op;

  while (scanf("%d%c%d", &a, &op, &b), op != '?') {

    if (op == '+')
      printf("%d\\n", a + b);
    if (op == '-')
      printf("%d\\n", a - b);
    if (op == '*')
      printf("%d\\n", a * b);
    if (op == '/')
      printf("%d\\n", a / b);
  }

  return 0;
}

#include <stdio.h>
int main() {

  int a, b;
  char op;

  while (scanf("%d %c %d", &a, &op, &b), op != '?') {

    if (op == '+')
      printf("%d\\n", a + b);
    else if (op == '-')
      printf("%d\\n", a - b);
    else if (op == '*')
      printf("%d\\n", a * b);
    else
      printf("%d\\n", a / b);
  }

  return 0;
}


#include <stdio.h>
int main(void) {
  int a, b;
  char op;

  while (1) {
    scanf("%d%c%d", &a, &op, &b);
    if (op == '+') {
      printf("%d", a + b);
    }
    if (op == '-') {
      printf("%d", a - b);
    }
    if (op == '*') {
      printf("%d", a * b);
    }
    if (op == '?') {
      break;
    }
  }
  return 0;
}

#include <stdio.h>
int main(void) {
  int a, b;
  char op;

  while (1) {
    scanf("%d %c %d", &a, &op, &b);
    if (op == '+') {
      printf("%d\\n", a + b);
    }
    if (op == '-') {
      printf("%d\\n", a - b);
    }
    if (op == '*') {
      printf("%d\\n", a * b);
    }
    if (op == '/') {
      printf("%d\\n", a / b);
    }
    if (op == '?') {
      break;
    }
  }
  return 0;
}


#include <cassert>
#include <cmath>
#include <iostream>
// #define NDEBUG
int main(void) {
  using namespace std;
  static const int INPUT_MAX = 20000;
  static const int INPUT_MIN = 0;
  int input_a = 0;
  int input_b = 0;
  int ans = 0; /* 解 */
  char op = 0; /* 演算子 */

  while (1) {
    cin >> input_a >> op >> input_b;

    /* 入力値の前提条件 最大・最小の制限*/
    assert(INPUT_MIN <= input_a && input_a <= INPUT_MAX);
    assert(INPUT_MIN <= input_b && input_b <= INPUT_MAX);
    /* 入力値の前提条件 0の割り算でないこと*/
    assert(!((input_a == 0 || input_b == 0) && op == '/'));

    /* Calculation */
    if (op == '+') {
      ans = input_a + input_b;
      cout << ans << endl;
    } else if (op == '-') {
      ans = input_a - input_b;
      cout << ans << endl;
    } else if (op == '*') {
      ans = input_a * input_b;
      cout << ans << endl;
    } else if (op == '/') {
      ans = input_a / input_b;
      cout << ans << endl;
    } else if (op == '?') {
      break;
    } else {
      cout << "Input Error" << endl;
      break;
    }
  }

  return 0;
}

#include <cassert>
#include <cmath>
#include <iostream>
// #define NDEBUG
int main(void) {
  using namespace std;
  static const int INPUT_MAX = 20000;
  static const int INPUT_MIN = 0;
  int input_a = 0;
  int input_b = 0;
  int ans = 0; /* 解 */
  char op = 0; /* 演算子 */

  while (1) {
    cin >> input_a >> op >> input_b;

    /* 入力値の前提条件 最大・最小の制限*/
    assert(INPUT_MIN <= input_a && input_a <= INPUT_MAX);
    assert(INPUT_MIN <= input_b && input_b <= INPUT_MAX);
    /* 入力値の前提条件 0の割り算でないこと*/
    assert(!(input_b == 0 && op == '/'));

    /* Calculation */
    if (op == '+') {
      ans = input_a + input_b;
      cout << ans << endl;
    } else if (op == '-') {
      ans = input_a - input_b;
      cout << ans << endl;
    } else if (op == '*') {
      ans = input_a * input_b;
      cout << ans << endl;
    } else if (op == '/') {
      ans = input_a / input_b;
      cout << ans << endl;
    } else if (op == '?') {
      break;
    } else {
      cout << "Input Error" << endl;
      break;
    }
  }

  return 0;
}


#include <cstdio>
using namespace std;
int main() {
  int x, y;
  char z;
  while (1) {
    scanf("%d %c %d", &x, z, &y);
    if (z == '?') {
      return 0;
    } else if (z == '+') {
      printf("%d\\n", x + y);

    } else if (z == '-') {
      printf("%d\\n", x - y);

    } else if (z == '/') {
      printf("%d\\n", x / y);

    } else if (z == '*') {
      printf("%d\\n", x * y);
    }
  }
  return 0;
}

#include <cstdio>
using namespace std;
int main() {
  int x, y;
  char z;
  while (1) {
    scanf("%d %c %d", &x, &z, &y);
    if (z == '?') {
      return 0;
    } else if (z == '+') {
      printf("%d\\n", x + y);

    } else if (z == '-') {
      printf("%d\\n", x - y);

    } else if (z == '/') {
      printf("%d\\n", x / y);

    } else if (z == '*') {
      printf("%d\\n", x * y);
    }
  }
  return 0;
}


#include <iostream>
using namespace std;

int main(void) {
  while (1) {
    int a, b;
    char op;
    cin >> a >> op >> b;

    switch (op) {
    case '+':
      cout << a + b << endl;
      break;
    case '-':
      cout << a - b << endl;
      break;
    case '*':
      cout << a * b << endl;
      break;
    case '/':
      cout << a / b << endl;
      break;
    case '?':
    default:
      break;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;

int main(void) {
  while (1) {
    int a, b;
    char op;
    cin >> a >> op >> b;

    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    } else
      break;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b, ans;
  char op[64];

  for (;;) {
    cin >> a >> op >> b;
    if (op == "+") {
      ans = a + b;
    } else if (op == "-") {
      ans = a - b;
    } else if (op == "*") {
      ans = a * b;
    } else if (op == "/") {
      ans = a / b;
    } else if (op == "?") {
      break;
    }
    cout << ans << endl;
  }
}

#include <iostream>
#include <string>
using namespace std;

int main() {
  int a, b, ans;
  string op;

  for (;;) {
    cin >> a;
    cin >> op;
    cin >> b;
    if (op == "+") {
      ans = a + b;
    } else if (op == "-") {
      ans = a - b;
    } else if (op == "*") {
      ans = a * b;
    } else if (op == "/") {
      ans = a / b;
    } else if (op == "?") {
      break;
    }
    cout << ans << endl;
  }
}


#include <iostream>
using namespace std;

int main() {
  int a, b, s;
  char op;
  while (1) {
    cin >> a >> b >> op;
    if (op == '?')
      break;

    if (op == '+') {
      s = a + b;
    } else if (op == '-') {
      s = a - b;
    } else if (op == '*') {
      s = a * b;
    } else {
      s = a / b;
    }
    cout << s << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b, s;
  char op;
  while (1) {
    cin >> a >> op >> b;
    if (op == '?')
      break;

    if (op == '+') {
      s = a + b;
    } else if (op == '-') {
      s = a - b;
    } else if (op == '*') {
      s = a * b;
    } else {
      s = a / b;
    }
    cout << s << endl;
  }
  return 0;
}


#include <stdio.h>
#include <string.h>
int main() {
  int a, b;
  char op[10];
  scanf("%d %s %d", &a, op, &b);
  while (strcmp(op, "?") != 0) {
    if (strcmp(op, "+") == 0) {
      printf("%d\\n", a + b);
    } else if (strcmp(op, "-") == 0) {
      printf("%d\\n", a - b);
    } else if (strcmp(op, "*") == 0) {
      printf("%d\\n", a * b);
    } else if (strcmp(op, "/") == 0) {
      printf("%d\\n", a / b);
    } else {
      break;
    }
  }

  return 0;
}

#include <stdio.h>
#include <string.h>
int main() {
  int a, b;
  char op;
  while (1) {
    scanf("%d %s %d", &a, &op, &b);
    if (op == '?') {
      break;
    } else if (op == '+') {
      printf("%d\\n", a + b);
    } else if (op == '-') {
      printf("%d\\n", a - b);
    } else if (op == '*') {
      printf("%d\\n", a * b);
    } else if (op == '/') {
      printf("%d\\n", a / b);
    }
  }

  return 0;
}


#include <iostream>
#include <stdio.h>

using namespace std;

int main() {
  int a, b;
  int result[1001];
  char op;
  int i = 0;
  while (scanf("%d %c %d", a, op, b), op != '?') {
    switch (op) {
    case '+':
      result[i++] = a + b;
      break;
    case '-':
      result[i++] = a - b;
      break;
    case '*':
      result[i++] = a * b;
      break;
    case '/':
      result[i++] = a / b;
      break;
    }
  }
  for (int j = 0; j < i; j++) {
    cout << result[j] << endl;
  }
}

#include <iostream>
#include <stdio.h>

using namespace std;

int main() {
  int a, b;
  int result[1001];
  char op;
  int i = 0;
  while (scanf("%d %c %d", &a, &op, &b), op != '?') {
    switch (op) {
    case '+':
      result[i++] = a + b;
      break;
    case '-':
      result[i++] = a - b;
      break;
    case '*':
      result[i++] = a * b;
      break;
    case '/':
      result[i++] = a / b;
      break;
    default:
      break;
    }
  }
  for (int j = 0; j < i; j++) {
    cout << result[j] << endl;
  }
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  cin >> a >> b >> op;
  while (op != '?') {
    if (op = '+') {
      cout << a + b << endl;
    } else if (op = '-') {
      cout << a - b << endl;
    } else if (op = '*') {
      cout << a * b << endl;
    } else if (op = '/') {
      cout << a / b << endl;
    }
    cin >> a >> b >> op;
  }
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (op != '?') {
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }
    cin >> a >> op >> b;
  }
}


#include <stdio.h>

int main(void) {
  int a, b, ans;
  char op = 's';
  bool flag = false;

  do {
    switch (op) {
    case '+':
      ans = a + b;
      break;
    case '-':
      ans = a - b;
      break;
    case '*':
      ans = a * b;
      break;
    case '/':
      ans = a / b;
    default:
      flag = true;
      break;
    }

    if (!flag)
      printf("%d\\n", ans);
    flag = true;
  } while (op != '?');

  return 0;
}

#include <stdio.h>

int main(void) {
  int a, b, ans;
  char op = 's';
  bool flag = false;

  do {
    switch (op) {
    case '+':
      ans = a + b;
      break;
    case '-':
      ans = a - b;
      break;
    case '*':
      ans = a * b;
      break;
    case '/':
      ans = a / b;
      break;
    default:
      flag = true;
      break;
    }

    if (!flag)
      printf("%d\\n", ans);
    flag = false;
    scanf("%d %c %d", &a, &op, &b);
  } while (op != '?');
  return 0;
}


#include <stdio.h>
int main() {
  int a, b, c;
  char op;
  while (1) {
    scanf("%d %c %d", &a, op, &b);
    if (op == '?')
      break;
    else if (op == '+')
      c = a + b;
    else if (op == '/')
      c = a / b;
    else if (op == '*')
      c = a * b;
    else if (op == '-')
      c = a - b;
  }
  return 0;
}

#include <stdio.h>
int main() {
  int a, b, c;
  char op;
  while (1) {
    scanf("%d %c %d", &a, &op, &b);
    if (op == '?')
      break;
    else if (op == '+')
      c = a + b;
    else if (op == '/')
      c = a / b;
    else if (op == '*')
      c = a * b;
    else if (op == '-')
      c = a - b;
    printf("%d\\n", c);
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (1) {
    if (op == '?') {
      break;
    } else if (op == '+') {
      cout << a + b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  while (1) {
    cin >> a >> op >> b;
    if (op == '?') {
      break;
    } else if (op == '+') {
      cout << a + b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }
  }
  return 0;
}


#include <iostream>
#include <stdio.h>
using namespace std;

int main(void) {
  int a, b;
  char op;

  cin >> a >> op >> b;
  while (1) {
    if (op == '?')
      break;
    if (op == '+')
      cout << a + b << endl;
    if (op == '-')
      cout << a - b << endl;
    if (op == '/')
      cout << a / b << endl;
    if (op == '*')
      cout << a * b << endl;
  }
  return 0;
}

#include <iostream>
#include <stdio.h>
using namespace std;

int main(void) {
  int a, b;
  char op;

  while (1) {
    cin >> a >> op >> b;
    if (op == '?')
      break;
    if (op == '+')
      cout << a + b << endl;
    if (op == '-')
      cout << a - b << endl;
    if (op == '/')
      cout << a / b << endl;
    if (op == '*')
      cout << a * b << endl;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;

  cin >> a >> op >> b;

  while (1) {

    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    } else
      break;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;

  while (1) {
    cin >> a >> op >> b;
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    } else
      break;
  }
  return 0;
}


#include <stdio.h>
int main() {
  int a, b;
  char op;
  while (1) {
    scanf("%d %c %d", &a, &op, &b);
    if (a == 0 && b == 0 && op == '?')
      break;
    if (op == '+')
      printf("%d\\n", a + b);
    if (op == '-')
      printf("%d\\n", a - b);
    if (op == '*')
      printf("%d\\n", a * b);
    if (op == '/')
      printf("%d\\n", a / b);
  }
  return 0;
}

#include <stdio.h>
int main() {
  int a, b;
  char op;
  for (int i = 1;; i++) {
    scanf("%d %c %d", &a, &op, &b);
    if (op == '?')
      break;
    if (op == '+')
      printf("%d\\n", a + b);
    if (op == '-')
      printf("%d\\n", a - b);
    if (op == '*')
      printf("%d\\n", a * b);
    if (op == '/')
      printf("%d\\n", a / b);
  }
  return 0;
}


#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
  int a, b;
  char c;
  for (;;) {
    cin >> a >> c >> b;
    if (a != 0, b != 0 && c == '+')
      cout << a + b << endl;
    else if (a != 0, b != 0 && c == '-')
      cout << a - b << endl;
    else if (a != 0, b != 0 && c == '*')
      cout << a * b << endl;
    else if (a != 0, b != 0 && c == '/')
      cout << a / b << endl;
  }
  return 0;
}

#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
  int a, b;
  char c;
  for (;;) {
    cin >> a >> c >> b;
    if (c == '+')
      cout << a + b << endl;
    else if (c == '-')
      cout << a - b << endl;
    else if (c == '*')
      cout << a * b << endl;
    else if (c == '/')
      cout << a / b << endl;
    else if (c == '?')
      break;
  }
  getchar();
  getchar();
  return 0;
}


#include <iomanip>
#include <iostream>
using namespace std;
int main() {
  int a, c, d;
  char op;
  cin >> a >> op >> c;
  while ((a > 0) || (c > 0)) {
    if (op == '+') {
      cout << (a + c) << endl;
    } else if (op == '-') {
      cout << (a - c) << endl;
    } else if (op == '*') {
      cout << (a * c) << endl;
    } else if (op == '/') {
      cout << (a / c) << endl;
    }
  }
  cin >> a >> op >> c;
}

#include <iostream>
using namespace std;
int a(int a, int b) { return a + b; }
int b(int a, int b) { return a - b; }
int c(int a, int b) { return a * b; }
int d(int a, int b) { return a / b; }
int main() {
  int n, m;
  char op;
  while (cin >> n >> op >> m && op != '?') {
    if (op == '+')
      cout << a(n, m) << endl;
    else if (op == '-')
      cout << b(n, m) << endl;
    else if (op == '*')
      cout << c(n, m) << endl;
    else if (op == '/')
      cout << d(n, m) << endl;
  }
}


#include <stdio.h>

int main(void) {
  int a, b;
  char ch;
  while (1) {
    scanf("%d", &a);
    getchar();
    ch = getchar();
    scanf("%d", &b);
    if (a == 0 && ch == '?' && b == 0) {
      break;
    }
    switch (ch) {
    case '+':
      printf("%d\\n", a + b);
      break;
    case '-':
      printf("%d\\n", a - b);
      break;
    case '*':
      printf("%d\\n", a * b);
      break;
    case '/':
      printf("%d\\n", a / b);
      break;
    }
  }
  return 0;
}

#include <stdio.h>

int main(void) {
  int a, b;
  char ch;
  while (1) {
    scanf("%d", &a);
    getchar();
    ch = getchar();
    scanf("%d", &b);
    if (ch == '?') {
      break;
    }
    switch (ch) {
    case '+':
      printf("%d\\n", a + b);
      break;
    case '-':
      printf("%d\\n", a - b);
      break;
    case '*':
      printf("%d\\n", a * b);
      break;
    case '/':
      printf("%d\\n", a / b);
      break;
    }
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int a, b;
  char op;
  while (1) {
    cin >> a >> b >> op;
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }
    if (op == '?')
      break;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int a, b;
  char op;
  while (1) {
    cin >> a >> op >> b;
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    } else {
      break;
    }
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int a, b, x;
  char op;
  while (op != '?') {
    cout << a << op << b;
    if (op == '+') {
      x = a + b;
    } else if (op == '-') {
      x = a - b;
    } else if (op == '*') {
      x = a * b;
    } else if (op == '/') {
      x = a / b;
    }
    cout << x << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int a, b, x;
  char op;
  cin >> a >> op >> b;
  while (op != '?') {
    if (op == '+') {
      x = a + b;
    } else if (op == '-') {
      x = a - b;
    } else if (op == '*') {
      x = a * b;
    } else if (op == '/') {
      x = a / b;
    }
    cout << x << endl;
    cin >> a >> op >> b;
  }
  return 0;
}


#include <iostream>
#include <stdio.h>
using namespace std;

int main() {

  while (1) {
    int a, b;
    char op;
    cin >> a >> op >> b;
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '*') {
      break;
    }
  }
  return 0;
}

#include <iostream>
#include <stdio.h>
using namespace std;

int main() {

  while (1) {
    int a, b;
    char op;
    cin >> a >> op >> b;
    if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '?') {
      break;
    }
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  while (1) {
    switch (op) {
    case '+':
      cout << a + b;
      break;
    case '-':
      cout << a - b;
      break;
    case '*':
      cout << a * b;
      break;
    case '/':
      cout << a / b;
      break;
    case '?':
      return 0;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int a, b;
  char op;
  while (1) {
    cin >> a >> op >> b;
    switch (op) {
    case '+':
      cout << a + b << endl;
      break;
    case '-':
      cout << a - b << endl;
      break;
    case '*':
      cout << a * b << endl;
      break;
    case '/':
      cout << a / b << endl;
      break;
    case '?':
      return 0;
    }
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  if (op == '+') {
    cout << a + b << endl;
  } else if (op == '-') {
    cout << a - b << endl;
  } else if (op == '*') {
    cout << a * b << endl;
  } else if (op == '/') {
    cout << a / b << endl;
  } else {
  };
  while (1) {
    cin >> a >> op >> b;
    if (op == '/' && b == 0)
      break;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;
  while (1) {
    cin >> a >> op >> b;
    if (op == '?') {
      break;
    } else if (op == '+') {
      cout << a + b << endl;
    } else if (op == '-') {
      cout << a - b << endl;
    } else if (op == '*') {
      cout << a * b << endl;
    } else if (op == '/') {
      cout << a / b << endl;
    }
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;

  while (cin >> a >> op >> b) { // '?' puts cin into an error state, to end

    switch (op) {
    case '+':
      a += b;
      break;
    case '-':
      a -= b;
      break;
    case '*':
      a *= b;
      break;
    case '/':
      a /= b;
      break;
    default:
      cout << "error" << endl;
      return -1;
    }

    cout << a << endl;
  }

  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b;
  char op;

  while (cin >> a >> op >> b && op != '?') {

    switch (op) {
    case '+':
      a += b;
      break;
    case '-':
      a -= b;
      break;
    case '*':
      a *= b;
      break;
    case '/':
      a /= b;
      break;
    default:
      cout << "error" << endl;
      return -1;
    }

    cout << a << endl;
  }

  return 0;
}