input:
a
b
c
d

target:

a
bb