for x in range(33): n1 = 1 * 33**4 + 2 * 33**3 + x * 33**2 + 3 * 33 + 4 n2 = 4 * 33**3 + 9 * 33**2 + x * 33 + 9 k = n1 + n2 if k % 19 == 0: print(k / 19)