fn main() { let stdin = std::io::read_to_string(std::io::stdin()).unwrap(); let mut stdin = stdin.split_ascii_whitespace(); let a: u8 = stdin.next().unwrap().parse().unwrap(); let b: u8 = stdin.next().unwrap().parse().unwrap(); println!("{}", output(solve(a, b))); } fn solve(a: u8, b: u8) -> bool { a % b == 0 } fn output(ans: bool) -> &'static str { match ans { true => "YES", false => "NO", } }