module main; import std; void main() { // 入力 long N = readln.chomp.to!long; // 答えの計算と出力 writeln(264 + N * 52); }