Загрузка данных


for i in range (123450000, 10**9+1):
    n = i // 10000
    if i//10000 == 12345 and n%10 ==7 and i%10 ==8:
        print (i)