coln=3;
while gets
chop;
if ($. % coln != 0)
sub(/\r/,"");
printf "%s\t",$_;
else
printf "%s\n",$_;
end
end
print "\n";