import java.util.Scanner object Main { def solve(sc: => Scanner): Unit = { println(sc.nextLong * 52 + 264) } def main(args: Array[String]): Unit = { val sc: Scanner = new Scanner(System.in) println(sc.nextLong * 52 + 264) } }