Which regulator for 30V DC to 5V DC

What if I use a 7812 (12v regulator) on the 30 volt and then again a 7805 (5v regulator ) on the 12 v output after that..??

Will that be too stupid activity..:stuck_out_tongue:
I just need to run a atmega328 and 4nos. of 7segment displays

I hope none of them will get too hot if I am drawing only 400 - 500mA as load