| 1 |
using System;
|
| 2 |
class Program
|
| 3 |
{
|
| 4 |
static int countDivisors(int x)
|
| 5 |
{
|
| 6 |
|
| 7 |
for (int i = 1; i <=x; i++)
|
| 8 |
{
|
| 9 |
if (x % i == 0)
|
| 10 |
{
|
| 11 |
count += 1;
|
| 12 |
}
|
| 13 |
}
|
| 14 |
return count;
|
| 15 |
}
|
| 16 |
static void Main()
|
| 17 |
{
|
| 18 |
int currentCount = 0;
|
| 19 |
int answer = 0;
|
| 20 |
|
| 21 |
{
|
| 22 |
int x = Convert.ToInt32(Console.ReadLine());
|
| 23 |
int y = countDivisors(x);
|
| 24 |
|
| 25 |
{
|
| 26 |
currentCount = y;
|
| 27 |
answer = x;
|
| 28 |
}
|
| 29 |
}
|
| 30 |
Console.WriteLine(answer);
|
| 31 |
}
|
| 32 |
}
|