def solve(): P, Q, Y0, p0, q0, Y = map(int, input().split()) tmp = Y-Y0 if Y