spoj CODE: debrujin sequence