//{{{ #[allow(unused_macros)] macro_rules! getl { ( $( $t:ty ),* ) => { { let mut s = String::new(); std::io::stdin().read_line(&mut s).unwrap(); let s = s.trim_right(); let mut ws = s.split_whitespace(); ($(ws.next().unwrap().parse::<$t>().unwrap()),*) } }; } #[allow(unused_macros)] macro_rules! getl_vec { ( $t:ty ) => {{ let mut s = String::new(); std::io::stdin().read_line(&mut s).unwrap(); let s = s.trim_right(); s.split_whitespace() .map(|x| x.parse().unwrap()) .collect::>() }}; } //}}} fn main() { let n = getl!(i64); let mut ans = 0i64; for i in 0..=(100 / 5) { for j in 0..=std::cmp::min(i, 100 / 2) { for k in 0..=(100 / 3) { if 5 * i + 2 * j + 3 * k == n { ans += 1; } } } } println!("{}", ans); }