Complex sentence: In 1930, the town had 5,706 inhabitants out of which 2,944 Hungarians, 2,186 Jews (mostly Hungarian-speaking), 503 Slovaks; in 2001 it had 23,519 inhabitants with 18,756 Hungarians and 3,588 Slovaks.
Split into simpler sentences: In 1930, the town had 5,706 inhabitants, including 2,944 Hungarians, 2,186 Jews (mostly Hungarian-speaking) and 503 Slovaks. In 2001 it had 23,519 inhabitants, with 18,756 Hungarians and 3,588 Slovaks.