AWK/Shell script for formatting data in a file

Hi All,
Need an urgent help to convert a unix file in to a particular format:

source file:

1111111
2d2f2h2
3dfgsd3
...........
1111111   <-- repeats in every nth line. remaining all lines will be different
123ss41
432ff45
...........
1111111  <-- repetition
qwe1234
123weq3
d123451
..........

output file

11111112d2f2h23dfgsd3...........
1111111123ss41432ff45...........
1111111qwe1234123weq3..........

I tried something like this, but doesn't get the expected output :confused: :

bank=1111111
while read line
do
{
       echo "$line\c" >> output
}
done <"input"

sed -e 's/1111111/\
1111111/g' output > output_two

Please share ur comments

Please read point #10 and point #11 in forum rules.