p=list(map(str,input().split(","))) s=0 for i in range(len(p)): if p[i] != "AC": s=1 print(["Done!","Failed..."][s])