function main(input) {
    var row = input.split('\n');
    var output = [];
    for (var i = 0; i < row.length; i++) {
        var data = row[i].split(' ');
        var a = parseInt(data[0]);
        var b = parseInt(data[2]);
        var op = data[1];
        if(op == '+'){
            output.push(a+b);
        }

        else if(op == '-'){
            output.push(a-b);
            
        }
        else if(op =='*'){
            output.push(a*b);
            
        }
        else if(op == '/'){
            output.push(a/b);
            
        }
        else if(op =='?'){
            break;
        }
    }
    console.log(output.join(' '));
}

process.stdin.resume();
var input = '';  
process.stdin.setEncoding('utf-8');
process.stdin.on('data', function(chunk) {
  input += chunk;
});
process.stdin.on('end', function() {
  main(input);
});