|Oliver Dvojakovski and F.Y.R. of Macedonia delivered for the home fans, securing a spot in the second round|
The hosts held their nerve from the free throw line to beat Finland 68-62 and snatch a place in the quarter-finals of the U18 European Championship Men Division B in Strumica, F.Y.R. of Macedonia on Monday.
Poland join them in the final eight from Group A after beating Denmark 74-64 to top the table and relegate the Danes to the competition for 17th place while Hungary and Finland will battle for ninth position.
F.Y.R. of Macedonia held a slender 63-60 advantage going into the final 27 seconds after the lead changed hands 10 times.
Dario Mitrov then hit a pair of clutch foul shots before Finland's Ville Hänninen missed a three-pointer and Kristijan Nikolov made sure of victory with a further three free throws from four attempts.
Andrej Magdevski led all scorers with 23 points while Tuomas Hirvonen responded with 20 in a losing effort as Finland fell into the fight for ninth.
Hungary had already completed their Group A schedule and were leapfrogged by F.Y.R. of Macedonia by virtue of the head-to-head record as the hosts beat them on day one.
Denmark dropped to fifth in the group on the final day but they despite leading 42-41 midway through the third quarter of their final game against Poland.
That was before Przemyslaw Zolnierewicz hit a lay-up to take the lead and give Poland control.
Damian Jeszke scored 16 points in total but one three-pointer, five minutes into the final period, sparked an 11-0 Poland run which sealed the result and Poland's perfect 4-0 record.