<>=~/((.)|\B)(?{$\+=$-=2*y!\0!!-$\+defined$2for$'^reverse$`})^/;print