@Test
	public void resolve() {
		Map<String, Integer> map = new TreeMap<>();
		try (InputStream input = new FileInputStream("data" + File.separator
				+ "p022.txt")) {
			List<String> lines = IOUtils.readLines(input);
			for (String line : lines) {
				String[] names = line.replace("\"", "").split(",");
				for (String name : names) {
					map.put(name, score(name));
				}
			}
			int index=1;
			for(String name:map.keySet()){
				map.put(name, map.get(name)*index);
				index++;
			}
			long sum=0;
			for(Integer s:map.values()){
				sum+=s;
			}
			print(sum);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}