#yuki932 import sys s=map(str,raw_input().split(',')) for i in range(len(s)): if s[i]!='AC': print 'Failed...' sys.exit() print 'Done!'