var line, i, eof_i;

line = require('fs').readFileSync('/dev/stdin', 'ascii').split("\n");
for (i = line.length - 1; i >= 0; i--) {
	if (line[i].indexOf("?") !== -1) {
		eof_i = i;
		line.pop();
		break;
	}
	line.pop();
}

for (i in line)
	line[i] = Math.floor(eval(line[i]));

console.log(line.join("\n"));