h,r = map(float,input().split()) a = h*r print(a-(500488-30574))