while 1:a,b,c=input()[:-1].split(' ');print([c*~-len(a)+'0',c+a][b=='+'])