#### Topic: Parameters

All greetings. Such etude. It is set N (<=500) parameters, each of which can accept value from 1 to 26. Is M (<=500) buttons, pushing each of which changes values of initial parameters (optionally all). Also some starting state of parameters S0 is set. It is required for a dial-up of states S [1. K] (K <=100) to define, whether it is possible to come into fortune Si from state S0 by pushing of some sequence of buttons (buttons can be pushed arbitrary, each button the unlimited number of times can be used). There are ideas? Thanks.