while 1:print(eval('('*19+'-7or-7)+7+'.join(input()+'0')))