x = input("Enter String : ")

for i in range(len(x)):
    if x[i]=='c' & x[i+1]=='a' & x[i+2]=='t':
        c = c+1
for i in range(len(Name)):
    if x[i]=='d' && x[i+1]=='o' && x[i+2]=='g':
        d = d+1

if c == d:
    print("True")

input("press enter")
