He studied Polish history and general history, philosophy, Latin, Polish, French, German, law, economics, arithmetic, geometry and surveying.