s = list(sorted(input().split(","))[::-1]) print("Done!") if s[0][0]=="A" else print("Failed...")