#include using namespace std; #define int long long signed main(){ string S; cin>>S; int N = S.size(); if(N < 3){ cout<<"NA"<