#![allow(unused_imports)] #![allow(dead_code)] use std::io::prelude::*; use std::cmp::{max, min}; use std::collections::BinaryHeap; const MOD: i64 = 1e9 as i64 + 7; fn main(){ let a: isize = read(); let b: isize = read(); let mut f = false; for i in 1..=100{ let c = b * i; if a < c{ break; } if a % c == 0{ f = true; } } let ans = if f {"YES"} else {"NO"}; println!("{}", ans); } fn read() -> T where T: std::str::FromStr, { let stdin = std::io::stdin(); let token: String = stdin .lock() .bytes() .map(|c| c.unwrap() as char) .skip_while(|c| c.is_whitespace()) .take_while(|c| !c.is_whitespace()) .collect(); token.parse().ok().unwrap() }