'use strict';

(function() {
    var fs = require('fs');
    var contents = fs.readFileSync('/dev/stdin', 'utf-8');

    var calc = function(contents) {
        var lines = contents.split("\n");
        for (var i = 0; i < lines.length; i++) {
            var line = lines[i].trim().split(" ");
            var a = parseInt(line[0]);
            var op = line[1];
            var b = parseInt(line[2]);
            if (op === '?') {
                break;
            }

            switch (op) {
            case '+':
                console.log(a + b);
                break;
            case '-':
                console.log(a - b);
                break;
            case '*':
                console.log(a * b);
                break;
            case '/':
                console.log(Math.floor(a / b));
                break;
            }
        }
    }

    calc(contents);
}());