public void readInString(String s){
		StringTokenizer st = new StringTokenizer(s);
		int len = Integer.valueOf(st.nextToken());
		candidate = new HashMap<Integer,Pair>(len);
		for(;len>0;len--){
			Integer key = Integer.valueOf(st.nextToken());
			Integer point = Integer.valueOf(st.nextToken());
			Integer rdeg = Integer.valueOf(st.nextToken());
			candidate.put(key, new Pair(point,rdeg));
		}
		len = Integer.valueOf(st.nextToken());
		not = new HashMap<Integer,Pair>(len);
		for(;len>0;len--){
			Integer key = Integer.valueOf(st.nextToken());
			Integer point = Integer.valueOf(st.nextToken());
			Integer rdeg = Integer.valueOf(st.nextToken());
			not.put(key, new Pair(point,rdeg));
		}
		len = Integer.valueOf(st.nextToken());
		result = new ArrayList<Pair>(len);
		for(;len>0;len--){
			Integer point = Integer.valueOf(st.nextToken());
			Integer rdeg = Integer.valueOf(st.nextToken());
			result.add( new Pair(point,rdeg));
		}
	}