street parade on spoj nice DS question - stack, queue