import scala.language.postfixOps object Main { def main(A:Array[String]){ val s = new java.util.Scanner(System.in) def f ={ val a = s.next if(a=="NONE")16 else 16-(a split "," size) } val v=f*f*f println(v*v) } }