import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String[] args) throws Exception { new Main().run(); } void run() { Scanner sc=new Scanner(System.in); int N=sc.nextInt(); int M=sc.nextInt(); long K=sc.nextLong(); char op=sc.next().toCharArray()[0]; long[] A=new long[N]; long[] B=new long[M]; for(int i=0;i