s = input("Enter a string : ")
flag = 1
a="a"

for i in range(0,len(s)-1):
        flag = 0
        break
    if s[i] != a:

if flag==1:
    print("String belong to the given grammer aa* \n")
else:
    print("String doesn't belong to the given grammer aa* \n")

