#include #include #include #include #define LL long long using namespace std; string str(int il, int ir){ string ret = to_string(il); ret += to_string(ir); return ret; } int main () { LL n; cin >> n; set myset; LL max = static_cast(sqrt(n) + 1); cout << max << endl; for (LL i = 1; i < max; ++i) { if (n % i != 0) continue; LL il = i; LL ir = n / i; myset.insert(str(il, ir)); myset.insert(str(ir, il)); cout << il << "," << ir << endl; } cout << myset.size() << endl; }