if you resign and left the country on an official way , like you made a residency cancilation , then you can came Back after 6 months only .