def I(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split(","))) def main(): mod=10**9+7 L=input().split(",") for s in L: if s!="AC": print("Failed...") exit() print("Done!") main()