import math i=input().split(' ') while i!=[]:print('%.2f'%math.sqrt(float(i[0])**2+float(i[1])**2));i=input().split(' ')