Algorithm(17)

1 2 3