use std::io::*; use std::str::FromStr; fn calc(n: i32) -> i32 { let mut ret = 0; for t in 0..100 { for c in 0..100 { for p in 0..100 { if t * 5 + c * 2 + p * 3 == n && t >= c { ret += 1; } } } } ret } fn main() { let mut s = String::new(); stdin().read_line(&mut s).ok(); let mut it = s.split_whitespace().map(|n| i32::from_str(n).unwrap()); let n = it.next().unwrap(); println!("{}", calc(n)); }