# -*- coding: utf-8 -*-
# wordcount2.py
f = open("D:/HWP/강의자료/파이썬/codes/BTS_Dynamite_lyrics.txt", "r")
counter = 0
for line in f:
    lcounter = line.lower().count("dynamite") 
    if lcounter > 0: print(line)
    counter = counter + lcounter
f.close()
print (counter)