i=input()o=[]if i.find('AUG')>=0:i=map(''.join,zip(*[iter(i[i.find('AUG'):])]*3))else:print "";exit()for j in i: if j not in['UGA','UAA','UAG']:o+=[j] else:breakprint ','.join(o)
"AUGCUUAUGAAUGGCAUGUACUAAUAGACUCACUUAAGCGGUGAUGAA"
AUG,CUU,AUG,AAU,GGC,AUG,UAC
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!