
import math
from time import time
t = time()
def divisors(n):
    number_of_factors = 0
    for i in range(1, int(math.ceil(math.sqrt(n)))):
        if n % i == 0:
            number_of_factors +=2
        else:
            continue
    return number_of_factors

def testing(number):
    x=1
    for y in range(2,1000000):
        x += y
        if divisors(x) >= number:
            print (x)
            break


tt = time()-t
testing(500)
print (tt)