import strutils let n: int = stdin.readline.parseInt ans: int = 316 + 52 * (n - 1) echo ans