Are Lanthanum and Actinium D block elements or F block

I’ve had this basic confusion for two years and every place gives different answers, what do I answer if it comes in JEE Mains