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