3 3 1 2 5 3 1 4 2 2 1 2 1 6 1 3 5 1 3 7
5 0 4
1 <= n, m <= 50000,1 <= 10^9,-10^9 <= a, b, x, y <= 10^9。