logic to determine an important clue to find the treasure