book = input() counter_books = 0 input_line = input() isFound = False while input_line != "No More Books": if book == input_line: isFound = True break counter_books += 1 input_line = input() if isFound: print(f"You checked {counter_books} books and found it.") else: print("The book you search is not here!") print(f"You checked {counter_books} books.")