public class Int235 {
	public static void main(String[] a) {
		int limit = 100;
		for (int n = 0, i = 1; n < limit; i++) {
			int tmp = i;
			while (tmp % 2 == 0) tmp /= 2;
			while (tmp % 3 == 0) tmp /= 3;
			while (tmp % 5 == 0) tmp /= 5;
			if (tmp == 1) {
				System.out.println(i);
				n++;
			}
		}
	}
}
