#[allow(unused_imports)] use std::collections::{HashMap, HashSet, VecDeque}; use proconio::input; fn main() { input! { n: u64, } let ans = 316 + 52 * (n - 1); println!("{}", ans); }