He graduated from the Military School in Sofia , and in 1910 from the Nikolaevsk General Staff Military Academy in St. Petersburg , Russia . He graduated from the Military School in Sofia and in 1910 from the Military Academy of the General Staff of Nikolaevsk , St. Petersburg , Russia .