targetBookName = input()
capacity = int(input())

bookCounter = 0
book = ""

while True:
    book = input()

    if(book == targetBookName):
        print(f"You checked {bookCounter} books and found it.")
        break
    else:
        bookCounter += 1

    if(bookCounter >= capacity):
        break

if(bookCounter >= capacity):
    print(f"The book you search is not here!")
    print(f"You checked {bookCounter} books.")




4bdb69876756e6672aab03fadacd521ff81f4a69
<mask token>

<mask token>
while True:
    book = input()
    if book == targetBookName:
        print(f'You checked {bookCounter} books and found it.')
        break
    else:
        bookCounter += 1
    if bookCounter >= capacity:
        break
if bookCounter >= capacity:
    print(f'The book you search is not here!')
    print(f'You checked {bookCounter} books.')

targetBookName = input()
capacity = int(input())
bookCounter = 0
book = ''
while True:
    book = input()
    if book == targetBookName:
        print(f'You checked {bookCounter} books and found it.')
        break
    else:
        bookCounter += 1
    if bookCounter >= capacity:
        break
if bookCounter >= capacity:
    print(f'The book you search is not here!')
    print(f'You checked {bookCounter} books.')

targetBookName = input()
capacity = int(input())

bookCounter = 0
book = ""

while True:
    book = input()

    if(book == targetBookName):
        print(f"You checked {bookCounter} books and found it.")
        break
    else:
        bookCounter += 1

    if(bookCounter >= capacity):
        break

if(bookCounter >= capacity):
    print(f"The book you search is not here!")
    print(f"You checked {bookCounter} books.")



