You have been staying in a foreign country for the last two years, and your visa is about to expire next June. However, you are planning to take a three-months professional course. You will need a visa extension.
Write a letter to the consular in the embassy and ask for an extension on your visa.