The population of Wales is quite heavily concentrated on the south coast of the country , especially in the large cities of Torfaen and Swansea where approximately 366 thousand and 247 thousand people live , respectively .