I had been puzzled over the problem for over an hour without any result,      all at once a solution flashed across my mind.
#33232
A
while
B
when
C
then
D
as