'use strict'

const main = arg => {
    const input = arg.trim().split("\n");
    var isBreak = false;
    const result = input.map(str => {
        const data = str.split(" ");
        const a = Number(data[0]);
        const b = Number(data[2]);
        if(isBreak){ return false; }
        switch(data[1]){
            case "+":
                return a + b;
            case "-":
                return a - b;
            case "*":
                return a * b;
            case "/":
                return Math.floor(a / b);
            case "?":
                isBreak = true;
                return false;
        }
    }).filter(obj => obj !== false);

    console.log(result.join("\n"));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
