# 题目描述

//By Bibi
///                 .-~~~~~~~~~-._       _.-~~~~~~~~~-.
///             __.'              ~.   .~              .__
///           .'//                  \./                  \\.
///        .'//                     |                     \\.
///       .'// .-~"""""""~~~~-._     |     _,-~~~~"""""""~-. \\.
///     .'//.-"                 -.  |  .-'                 "-.\\.
///   .'//______.============-..   \ | /   ..-============.______\\.
/// .'______________________________\|/______________________________.
#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<=b;++i)
#define dep(i,a,b) for(int i=a;i>=b;--i)
using namespace std;
typedef long long ll;
const int N=500;
int sum=0,flag=1;
char c;
for(;c<'0'||c>'9';c=getchar())if(c=='-') flag=-1;
for(;c>='0'&&c<='9';c=getchar())sum=(sum<<1)+(sum<<3)+c-'0';
return sum*flag;
}
int prime[20]={-1,2,3,5,7,11,13,17,19,23,29,31,37};
int maxid;
int n;
int p[N]={1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260,1680,2520,5040,7560,10080,15120,20160,25200,27720,45360,50400,55440,83160,110880,166320,221760,277200,332640,498960,554400,665280,720720,1081080,1441440,2162160,2882880,3603600,4324320,6486480,7207200,8648640,10810800,14414400,17297280,21621600,32432400,36756720,43243200,61261200,73513440,110270160,122522400,147026880,183783600,245044800,294053760,367567200,551350800,698377680,735134400,1102701600,1396755360,2001000000};
ll ans1;
ll ans2;
void init(){
}
void work1(){
rep(i,1,500){
if(p[i]>n) {ans1=p[i-1];break;}
}
}
void work2(long long now,int d,int tot){
if(d>maxid||(d==maxid&&now<ans2)) ans2=now,maxid=d;
if(tot>12) return;
ll a=1;
rep(i,0,30){
if(a*now>n) break;
work2(now*a,d*(i+1),tot+1);
a*=prime[tot];
}
}
int main(){
init();
work1();
work2(1,1,1);
if(ans1==ans2) printf("%lld\n",ans1);
else printf("不会打表别逼逼……");
return 0;
}
/*

ps：不会打表别逼逼……
*/

• 广告
• 抄袭
• 版权
• 政治
• 色情
• 无意义
• 其他

120