def display_th_occurrences(text):
# Find all occurrences of "th" in the text
index = 0
while index < len(text):
index = text.find("th", index)
if index == -1:
break
print("th")
index += 2 # Move past the current occurrence
# Example usage
text = "This is the path that leads to the cathedral."
display_th_occurrences(text)
ZGVmIGRpc3BsYXlfdGhfb2NjdXJyZW5jZXModGV4dCk6CiAgICAjIEZpbmQgYWxsIG9jY3VycmVuY2VzIG9mICJ0aCIgaW4gdGhlIHRleHQKICAgIGluZGV4ID0gMAogICAgd2hpbGUgaW5kZXggPCBsZW4odGV4dCk6CiAgICAgICAgaW5kZXggPSB0ZXh0LmZpbmQoInRoIiwgaW5kZXgpCiAgICAgICAgaWYgaW5kZXggPT0gLTE6CiAgICAgICAgICAgIGJyZWFrCiAgICAgICAgcHJpbnQoInRoIikKICAgICAgICBpbmRleCArPSAyICAjIE1vdmUgcGFzdCB0aGUgY3VycmVudCBvY2N1cnJlbmNlCgojIEV4YW1wbGUgdXNhZ2UKdGV4dCA9ICJUaGlzIGlzIHRoZSBwYXRoIHRoYXQgbGVhZHMgdG8gdGhlIGNhdGhlZHJhbC4iCmRpc3BsYXlfdGhfb2NjdXJyZW5jZXModGV4dCk=