S = list(map(str,input().split(","))) if len(set(S)) == 1: print("Done!") else: print("Failed...")