#!/usr/bin/env python3 a, b = map(int, input().split()) if b % a == 0: print(b // a) else: print('NO')