x,y=map(int,input().split()) a=x+y b=x*y if a