use std::io; fn main() { let v = input_nums(); let n = v[0]; let mut count = 0; for i in 0..=n / 5 { for j in 0..=i { for k in 0..=n / 3 { if i * 5 + j * 2 + k * 3 == n { count += 1; } } } } println!("{}", count); } fn input_nums() -> Vec { let mut s = String::new(); io::stdin().read_line(&mut s).unwrap(); let mut v = Vec::new(); for n in s.split_whitespace() { v.push(n.parse().unwrap()); } v }