System.in.eachLine{println 45-it*.toLong().sum()}