public static int getNth(int n) {
		int counter = 0;
		int foundDevilNumber = 0;
		do {
			counter++;
			String s = Integer.toString(counter);
			CharSequence cs = "666";
			if (s.contains(cs)) {
				if (++foundDevilNumber == n) {
					break;
				}
			}
		} while (true);
		return counter;
	}