import strutils var n = stdin.readLine.parseInt res = 316 + 52 * (n-1) echo res