/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int n = 500;
		System.out.println(n + "個以上の約数を持つ最初の三角数は" + func(n));
	}
	
	public static int func(int num) {
		// 2番目の三角数2*3/2=3に対応する、low:2/2=1の約数の個数1、high:3の約数の個数2
		int low = 1;
	    int high = 2;
	    int n = 2;
	    while (low * high < num) {
	        n++;
	        low = high;
	        high = numOfDivisor(n + 1);
	    }
	    return n * (n + 1) / 2;
	}
	
	private static int numOfDivisor(int n) {
	    if (n < 2) return 1;
	    int answer = 1;
	
	    // 偶数だった場合は2で割る(ビットシフト)
	    if ((n & 1)  == 0)
	        n >>= 1;
	
	    // nが√Integer.MAX_VALUE以上の素数だったりすると、この継続条件は良くないが、
	    // 簡単なのでこちらで進める
	    for (int i = 2; i * i <= n; i++) {
	        int count = 0;
	        while (n % i == 0) {
	            n /= i;
	            count++;
	        }
	        answer *= count + 1;
	    }
	    // forを抜けて残ったnが1でないときは、そのnは素数なので1+1=2を掛ける
	    if (n != 1)
	        answer *= 2;
	    return answer;
	}
}