Solve if you are a genius

No trick. Pure math. Gud luck Solve it


You are standing in one big palace

where a king and his 5 queens stay.

Each queen has 5 rooms

In each room there are 5 big cats

Each big cat has 5 little cats

Each cat has 4 legs.How many legs are there in the palace?