HDU-1097 A hard puzzle

NoSuchKey