from decimal import Decimal def remove_exponent(d): return d.quantize(Decimal(1)) if d == d.to_integral() else d.normalize() a,b=map(Decimal,input().split()) print(str(remove_exponent(a+b)))