Y by tabasa

s=0;a=[]\x0d
((gets p).split(/(Y)/)-["Y"]).each{|i|a<<s+=i.size;s+=1}\x0d
a.pop\x0d
puts a

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top