System.in.eachLine{println"${4g.pow(it as int)}".toList().sum{it as int}}