use std::io; fn main() { let mut input = String::new(); io::stdin().read_line(&mut input).ok(); let mut input = input.split_whitespace(); let a = input.next().unwrap().parse::().unwrap(); let b = input.next().unwrap().parse::().unwrap(); if b % a == 0 { println!("{}", b / a); } else { println!("NO"); } }