#!ruby -pl $_=(0..50*n= ~/$/).map{|i|s=$_[i%n,i/n];s.reverse==s ?s:""}.max_by &:size