importmath N = int(input()) def get_numlist(N): num = math.sqrt(N) fori in range(math.floor(num),1,-1): ifN%i == 0: ...