#[allow(unused_imports)] use proconio::{ input, marker::{Bytes, Chars, Usize1}, }; const M: usize = 55440; fn main() { input! { k: usize, n: usize, } let mut res = 0usize; let a = [13, 17, 19, 23]; for &x in &a { if x <= n && x == k { res += 1; } } let mut b = vec![]; for i in 1..=n { if a.iter().all(|&x| i != x) { b.push(M / i); } } let mut dp = vec![0; M + 1]; dp[0] = 1; for _ in 0..k { let mut ndp = vec![0; M + 1]; for &x in &b { for i in x..=M { ndp[i] += dp[i - x]; } } dp = ndp; } res += dp[M]; println!("{}", res); }