prob3 redo
go prob 5