import java.util.ArrayList; import java.util.Scanner; public class No586 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int P1 = s.nextInt(); int P2 = s.nextInt(); int N = s.nextInt(); int C = 0; ArrayList room = new ArrayList<>(); for(int i=0;i