# L-15 MCS 260 Mon 15 Feb 2010 : apply
"""
apply() in a simple calculator
"""
from operator import add, sub, mul
OPS = { '+':add, '-':sub, '*': mul }
ARAW = raw_input('give first operand : ')
A = int(ARAW)
BRAW = raw_input('give second operand : ')
B = int(BRAW)
ACT = raw_input('operator ? (+, -, *) ')
C = apply(OPS[ACT], (A, B))
print '%d %s %d = %d' % (A, ACT, B, C)
