{ NOTE: it is recommended to use this even if you don't understand the following code } const MAXM = 100000; MAXE = 300000; MAXN = 100000; var E, M, N, i : LongInt; A, B : Array[0..MAXE-1] of LongInt; P : Array[0..MAXN-1] of LongInt; Q : Array[0..MAXM-1] of LongInt; begin { uncomment the two following lines if you want to read/write from files assign(input, 'input.txt'); reset(input); assign(output, 'output.txt'); rewrite(output); } ReadLn(N, M, E); for i:=0 to E-1 do ReadLn(A[i], B[i]); for i := 0 to MAXN-1 do P[i] := 0; for i := 0 to MAXM-1 do Q[i] := 0; { INSERT YOUR CODE HERE } for i:=0 to N-1 do Write(P[i], ' '); WriteLn(); for i:=0 to M-1 do Write(Q[i], ' '); WriteLn(); end.