import java.util.*; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.next(); String ans = "NA"; if(s.length() >= 3) { for(int i=1; i