st=list(map(str,input().split(','))) print(st) if "WA" in st or "TLE" in st or "MLE" in st: print("Failed...")