import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) { new Main().run(); } final long MOD=(long)1e9+7; void run() { FastScanner sc=new FastScanner(); int N=sc.nextInt(); int M=sc.nextInt(); int K=sc.nextInt(); int[] A=new int[N]; int[] suma=new int[N+1]; int[] B=new int[M]; int[] sumb=new int[M+1]; for (int i=0;i