# -*- coding: utf-8 -*- a, b = map(int, input().split()) print("NO" if b % a != 0 else b // a)