fun main() { println(readln().toLong()*52+264) }