2011 multi BNU; stack simulation, dfs sequence