hacker.org runaway.cpp using enumeration