I just write the code to read input.
clients = []
N = int(input())
for i in range(N):
clients.append(list(map(int, input().split(" "))))
xg, yg, xa, ya = map(int, input().split(" "))
And get the error with "not enough values to unpack (expected 4, got 2)" in line "xg, yg, xa, ya = map(int, input().split(" "))" for some test cases. But some are pass.
In the problem's input detail says that four integers Xg, Yg representing Cg, and Xa, Ya representing Ca come after N + 1 lines.
Does the input format have any problems?