n = int(input()) ls=[] for a in range(1, n+1): count=0 for i in range(1, a): if a % i == 0: &...