lst = list(input().split(",")) ans = "Done!" for i in range(len(lst)): if lst[i] != "AC": ans = "Failed..." print(ans)