first puzzle(simple logic)