#include <iostream>
#include <vector>
using namespace std;
// Función para factorizar un número en primos
vector<int> factorizar(int n) {
vector<int> primos;
int i = 2;
while (i * i <= n) {
if (n % i == 0) {
primos.push_back(i);
n /= i;
} else {
i++;
}
}
if (n > 1) {
primos.push_back(n);
}
return primos;
}
// Función para calcular el número de divisores de un número
int contarDivisores(int n) {
vector<int> primos = factorizar(n);
int exponentes[primos.size()];
for (int i = 0; i < primos.size(); i++) {
exponentes[i] = 0;
}
for (int i = 0; i < primos.size(); i++) {
int p = primos[i];
while (n % p == 0) {
exponentes[i]++;
n /= p;
}
}
int divisores = 1;
for (int i = 0; i < primos.size(); i++) {
divisores *= (exponentes[i] + 1);
}
return divisores;
}
int main() {
int n;
cout << "";
cin >> n;
int divisores = contarDivisores(n);
cout << " " << n << " es: " << divisores << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKLy8gRnVuY2nDs24gcGFyYSBmYWN0b3JpemFyIHVuIG7Dum1lcm8gZW4gcHJpbW9zCgl2ZWN0b3I8aW50PiBmYWN0b3JpemFyKGludCBuKSB7CiAgICB2ZWN0b3I8aW50PiBwcmltb3M7CiAgICBpbnQgaSA9IDI7CiAgICB3aGlsZSAoaSAqIGkgPD0gbikgewogICAgICAgIGlmIChuICUgaSA9PSAwKSB7CiAgICAgICAgICAgIHByaW1vcy5wdXNoX2JhY2soaSk7CiAgICAgICAgICAgIG4gLz0gaTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBpKys7CiAgICAgICAgfQogICAgfQogICAgaWYgKG4gPiAxKSB7CiAgICAgICAgcHJpbW9zLnB1c2hfYmFjayhuKTsKICAgIH0KICAgIHJldHVybiBwcmltb3M7Cn0KCi8vIEZ1bmNpw7NuIHBhcmEgY2FsY3VsYXIgZWwgbsO6bWVybyBkZSBkaXZpc29yZXMgZGUgdW4gbsO6bWVybwppbnQgY29udGFyRGl2aXNvcmVzKGludCBuKSB7CiAgICB2ZWN0b3I8aW50PiBwcmltb3MgPSBmYWN0b3JpemFyKG4pOwogICAgaW50IGV4cG9uZW50ZXNbcHJpbW9zLnNpemUoKV07CiAgICBmb3IgKGludCBpID0gMDsgaSA8IHByaW1vcy5zaXplKCk7IGkrKykgewogICAgICAgIGV4cG9uZW50ZXNbaV0gPSAwOwogICAgfQogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBwcmltb3Muc2l6ZSgpOyBpKyspIHsKICAgICAgICBpbnQgcCA9IHByaW1vc1tpXTsKICAgICAgICB3aGlsZSAobiAlIHAgPT0gMCkgewogICAgICAgICAgICBleHBvbmVudGVzW2ldKys7CiAgICAgICAgICAgIG4gLz0gcDsKICAgICAgICB9CiAgICB9CiAgICBpbnQgZGl2aXNvcmVzID0gMTsKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgcHJpbW9zLnNpemUoKTsgaSsrKSB7CiAgICAgICAgZGl2aXNvcmVzICo9IChleHBvbmVudGVzW2ldICsgMSk7CiAgICB9CiAgICByZXR1cm4gZGl2aXNvcmVzOwp9CgppbnQgbWFpbigpIHsKICAgIGludCBuOwogICAgY291dCA8PCAiIjsKICAgIGNpbiA+PiBuOwogICAgaW50IGRpdmlzb3JlcyA9IGNvbnRhckRpdmlzb3JlcyhuKTsKICAgIGNvdXQgPDwgIiAiIDw8IG4gPDwgIiBlczogIiA8PCBkaXZpc29yZXMgPDwgZW5kbDsKICAgIHJldHVybiAwOwp9