public static void main(String[] args) {
//		String filePath = "D:\\\\Download\\SecureCRT\\popup.yy.com.log.6\\popup.yy.com.log.6";
		String filePath = "D:\\\\Download\\SecureCRT\\popup.yy.com.log";
		try (FileReader fr = new FileReader(filePath);
				BufferedReader br = new BufferedReader(fr)) {
			String line = null;
			long sum = 0;
			int count = 0;
			while ((line = br.readLine()) != null) {
				String[] strings = line.split(" ");
				if (strings.length > 5) {
//					try {
//						if (strings[7].indexOf("popupUrl") > 0) {
//							sum += Integer.valueOf(strings[strings.length - 3]);
//							count ++;
//						}
//					} catch (Exception e) {
//						System.out.println(line);
//					}
					sum ++;
					try {
						if (Integer.valueOf(strings[strings.length - 3]) > 1000) {
							System.out.println(line);
							count ++;
						}
					} catch (Exception e) {
					}
				}
			}
			System.out.println(count + " " + sum / count);
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}