System.in.eachLine{println"${4**(it as int)}"*.toLong().sum()}