def find_unshot_cans():
for harry_shot in range(1, 11):
for larry_shot in range(1, 11):
total_cans = harry_shot + larry_shot - 1
if total_cans <= 10 and total_cans - harry_shot == larry_shot - 1:
return harry_shot, 10 - larry_shot + 1
harry_cans, larry_cans = find_unshot_cans()
print("Гарри не прострелил", 10 - harry_cans, "банок")
print("Ларри не прострелил", 10 - larry_cans, "банок")