use strict';
process.stdin.on('data', function(chunk) {
    var inputs = chunk.toString().trim();
    var expression = inputs.split('\n');
    for (var i = 0; i < expression.length; i++) {
        if (expression[i] === '0 ? 0') {
            break;
        }
        var expressions = expression[i].split(' ');
        var left = Number(expression[0]);
        var right = Number(expression[2]);
        var op = expressions[1];

        if (op === '+') {
            console.log(left + right);

        } else if (op === '-') {
            console.log(left - right);

        } else if (op === '*') {
            console.log(left * right);

        } else if (op === '/') {
            console.log(left / right);

        }

        console.log(Math.floor(left / right));
    }


});
process.stdin.resume();
process.stdin.setEncoding('utf8');