#include #include usingnamespacestd;
typedeflonglongint ll;
bool flag1 = false, flag2 = false;
int m;
inline ll pow_m(ll a, ll b, ll mod)
{
ll res = 1;
while (b)
{
if (b & 1) res = (res*a) % mod;
a = (a*a) % mod;
b >>= 1;
}
res = res % mod;
return res;
}
int main()
{
int n;
ios::sync_with_stdio(false);
while (cin >> n && n)
{
flag1 = false, flag2 = false;
m = sqrt(n + 0.5);
for (int i = 2; i <= m; i++)
{
if (n%i == 0)
{
flag2 = true;
break;
}
}
if (!flag2) { cout << n << " is normal." << endl; continue; }
for (int i = 2; i <= n - 1; i++)
{
int aa = pow_m(i, n, n);
if (aa != i)
{
flag1 = true;
break;
}
}
if (!flag1&&flag2) cout << "The number " << n << " is a Carmichael number." << endl;
elsecout << n << " is normal." << endl;
}
}