a = input() b = a.strip(string.punctuation).replace(",",'') c = b.split(' ') cnt = 0 for i in c: if i == 'the': cnt += 1