package com.company; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long value = scanner.nextLong(); long result = 316L-52L + value * 52L; System.out.println(result); } }