A, B, C, D, E, F = map(int, input().split()) import math print(math.sqrt((F-E)/A+(C**2+D**2)/(4*A**2)))