solve any program with this simple trick