#include #define rep(i,n) for(int i=0; i<(int)(n); i++) using namespace std; using LL = long long; using P = pair; const LL INF = 1e15; int main(){ LL A; cin >> A; LL ans=INF; for(LL i=2; i<=100; i++){ LL res=1, num=i; while(num