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