import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long N = scan.nextLong(); long page = 316; int pagePerIssue = 52; for(int i = 1; i < N; i++){ page += pagePerIssue; } System.out.println(page); scan.close(); } }