How you maintain both good cgpa and fit body?

I'm about to start my bachelors in Mechanical Engg.(I'm skinny,,,5'6)...
But I intend to maintain about 3.9+ cgpa and a healthy body... I'll be happier if u add some extra advice too on loneliness...🙂
How you maintain both good cgpa and fit body?
Post Opinion