A man wears socks of two colours - black and brown. He has altogether 20 black socks and 20 brown socks in a drawer. Supposing he has to take out the socks in the dark, how many least number of socks must he take out to be sure that he has matching pair ?