s = input().strip() parts = s.split(',') if all(p == 'AC' for p in parts): print("Done!") else: print("Failed...")