#include #include #include #include using namespace std; typedef unsigned long long UL; int main(int argc, char* argv[]) { UL N; cin>>N; char d[100]; set nSet; UL n=(UL)sqrt((double)N); for (UL i=1;i<=n;i++){ UL x=N%i; if (x==0){ UL y=N/i; sprintf(d,"%lu%lu",y,i); nSet.insert(d); sprintf(d,"%lu%lu",i,y); nSet.insert(d); } } cout<