how do i solve thias problem? any hint please.
Familiarity with Sprague–Grundy theorem should be helpful in solving the problem.