The population of village was 5000. The male population decreased by 20% and female population increased by 30 % make in change in total population. Find the male and female population of the village in the beginning.​