public int thimbleWithBall(String[] swaps) {
		int current = 1;
		for (String swap : swaps) {
			String[] split = swap.split("-");
			for (int i = 0; i < split.length; i++) {
				if (Integer.valueOf(split[i]) == current) {
					current = Integer.valueOf(split[(i + 1) % 2]);
					break;
				}
			}

		}
		return current;
	}