子数整数 k = int(input()) flag = False for i in range(10000,30001): a,b,c = [int(str(i)[j:j + 3]) for j in range(3)] if a % k == 0 and b % k == 0 and c % k == 0: print(i) flag = True if not flag: print('No')