s = input().split(",") ans = "Done!" for c in s: if c != "AC": ans = "Falied..." print(ans)