static int process(String line) {
		int[] arr = giveArray(line.trim().split(" "));
		int n = arr[0], p = arr[1];
		if(n == 0 && p == 0)
			return 0;
		for(int i = 0; i < n; i++) {
			readLine();
		}
		String name = null;
		int met = -1;
		double best = -1;
		
		for(int i = 0; i < p; i++) {
			String s = readLine().trim();
			String[] splts = readLine().trim().split(" ");
			double price = Double.parseDouble(splts[0]);
			int req = Integer.parseInt(splts[1]);
			if(req > met) {
				name = s;
				met = req;
				best = price;
			}
			else
				if(req == met && price < best) {
					best = price;
					name = s;
				}
			for(int j = 0; j < req; j++)
				readLine();
		}
		if(ind > 0)
			 System.out.println();
		System.out.println("RFP #" + (++ind));
		System.out.println(name);
		
		return 1;

	}