BERLIN (AP)Ukraine’s run at EuroBasket is over.

A.J. Slaughter scored 24 points, Mateusz Ponitka added 22 and Poland ousted Ukraine from the European championships with a 94-86 victory on Sunday.

Aleksander Balcerowski scored 14 and Michal Sokolowski had 13 for Poland, which finished the game on a 20-10 run and now will face Luka Doncic and defending EuroBasket champion Slovenia in a quarterfinal game on Wednesday.

And with that, the summer schedule for Ukraine’s national team came to a sudden end. The team played and trained in several countries around Europe throughout the summer but couldn’t gather in its own because of the ongoing war prompted by Russia’s invasion in February.

Games have been aired throughout Ukraine during EuroBasket, and players said they know their run in the tournament lifted some spirits.

”I hope it inspires and helps them a lot, just to get their thoughts off the war a little bit and just watch us play,” Svi Mykhailiuk said. ”Obviously, today was not a great example of us playing, but this whole time, we did our best. I hope they enjoyed it. Obviously, it’s tough for everybody because all the guys’ families are still there and it’s tough having to be here. But I appreciate everyone being here. I appreciate everyone fighting.”

Vyacheslav Bobrov led Ukraine with 15 points. Artem Pustovyi and Issuf Sanon scored 13 apiece, Mykhailiuk had 12 and Ivan Tkachenko finished with 10.

Neither team ever led by more than nine in a game that featured 12 lead changes and 11 ties.

”It was tough, but we did what we did,” Mykhailiuk said. ”I think we did more than everybody expected us to do.”

FINLAND 94, CROATIA 86

Lauri Markkanen scored 43 points, and Finland is now assured of its best EuroBasket result in 55 years.

Shawn Huff’s 3-pointer with 4:25 left put Finland ahead to stay, Markkanen’s layup capped a 10-0 game-deciding run and Finland topped Croatia for its first EuroBasket quarterfinals berth since 1967.

Finland will play Spain on Tuesday, seeking its first semifinals berth at the European championships in 17 appearances.

Markkanen made 19 of 29 shots from the field, scoring 26 of his points in the second half. He also had nine rebounds for Finland, which got 17 points from Sasu Salin and 16 from Edon Maxhuni.

The 43 points ties Markkanen for the eighth-highest scoring performance in EuroBasket history and the best by a Finnish player.

Bojan Bogdanovic scored 23 points for Croatia, which got 17 from Jaleen Smith, 12 from Dario Saric and 11 apiece from Krunoslav Simon and Karlo Matkovic.

More AP sports: https://apnews.com/hub/sports and https://twitter.com/AP-Sports