int factors(int);
int main()
{
int k;
cin>>k;
cout<<factors(k);
cout<<endl;
system("pause");
return 0;
}
int factors(int k)
{
int n=0, kol;
while(true)
{
kol=0;
n++;
for (int i=n; i>0; i--)
if (n%i==0)
{
if (i*i==n)
kol=kol+2;
else kol++;
}
if (kol/2==k)
break;
}
return n;
}