Nastia and nearly Good Numbers

Problem Name:
Nastia and nearly Good Numbers
Site:CodeForces
Links:
Tags:
Problem setters: