Source Code:
s=input()
l=['G','o','o','d','b','y','e']
for i in range(len(s)):
if s[i] in l:
l.remove(s[i])
if not l:
print("Yes")
else:
print("No")
s=input()
l=['G','o','o','d','b','y','e']
for i in range(len(s)):
if s[i] in l:
l.remove(s[i])
if not l:
print("Yes")
else:
print("No")
Comments
Post a Comment