Slovakia rounded off their Group D campaign with a resounding win over minnows San Marino.
Lubomir Michalik opened the scoring three minutes before half-time before the floodgates opened in the second half for the visitors.
Filip Holosko and Marek Hamsik both scored in the second half before Marek Cech rounded things off with a late brace.
The home side could have taken a surprise lead when Andy Selva shot wide with a 20-yard free-kick in the opening minute after being fouled by Hamsik.
Selva was given another dead-ball opportunity in the fifth minute when he was fouled by Michalik, this time his effort hit the bar.
Matej Krajcik blasted the visitors' first opportunity over the bar from the right channel after 10 minutes.
Jan Kozak then shot over when well placed for Slovakia after 12 minutes.
Manuel Mariani hit a right-footed effort over the bar from 18 yards for the hosts in the 19th minute.
A minute later Krajcik crossed for Balasz Borbely whose shot was saved by San Marino keeper Federico Valentini.
Selva tested Slovakia keeper Stefan Senecky with a long range effort in the 33rd minute.
Michalik opened the scoring after 42 minutes when he headed in a Jan Kozak cross after a flick-on from Filip Holosko.
Six minutes after the break Holosko made it two, heading home a Hamsik corner into the roof of the net.
Two minutes later Hamsik added a third when he scored from 20 yards into the bottom-left corner of the goal.
Cech turned home Kozak's 57th-minute cross from 12 yards to make it four as the minnows began to capitulate.
Holosko could have scored his second goal of the game after 71 minutes, but he headed a Kozak free-kick wide from six yards.
Senecky brilliantly turned Carlo Valentini's free-kick away on 73 minutes.
Cech completed his double with an 83rd minute goal, hitting a low shot into the net from Juraj Halenar's pass.
Teams:
San Marino Federico Valentini, Carlo Valentini, Mauro Marani (Andreini 84), Davide Simoncini, Della Valle, Bollini (Berretti 61), Michele Marani, Muccioli, Vannucci, Manuel Marani, Selva (De Luigi 50).
Subs Not Used: Ceccoli, Bugli, Nanni, Fabio Vitaioli.
Booked: Selva, Vannucci, Muccioli, Mauro Marani,
Carlo Valentini.
Slovakia Senecky, Krajcik (Petras 63), Michalik, Hubocan,Cech, Borbely, Hamsik, Kisel (Szabo 46), Kozak, Sestak (Halenar 75), Holosko.
Subs Not Used: Contofalsky, Jez, Hesek, Brezinsky.
Booked: Michalik, Hubocan, Halenar.
Goals: Michalik 42, Holosko 51, Hamsik 53, Cech 57, 83.
Att: 500
Ref: Andrejs Sipailo (Latvia).