Please read the following table in HTML format from a webpage and then answer the question in detail according to the table. Each table cell is defined by a <td> and a </td> tag. Each table row starts with a <tr> and ends with a </tr> tag. 'rowspan=m' and 'colspan=n' represents a cell spaning over 'm' rows and 'n' columns.

Webpage title:
Samba, Jammu and Kashmir
Table title:
Demographics
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=1 rowspan=1 >  </th><th colspan=1 rowspan=1 > Total </th><th colspan=1 rowspan=1 > General </th><th colspan=1 rowspan=1 > Schedule Caste </th><th colspan=1 rowspan=1 > Schedule Tribe </th><th colspan=1 rowspan=1 > Children </th></tr>
<tr> <td colspan=1 rowspan=1 > Total </td><td class="highlighted"  colspan=1 rowspan=1 > 12,700 </td><td colspan=1 rowspan=1 > 9,066 </td><td colspan=1 rowspan=1 > 3,629 </td><td colspan=1 rowspan=1 > 5 </td><td colspan=1 rowspan=1 > 1,365 </td></tr>
<tr> <td colspan=1 rowspan=1 > Male </td><td class="highlighted"  colspan=1 rowspan=1 > 6,979 </td><td colspan=1 rowspan=1 > 5,041 </td><td colspan=1 rowspan=1 > 1,934 </td><td colspan=1 rowspan=1 > 4 </td><td colspan=1 rowspan=1 > 756 </td></tr>
<tr> <td colspan=1 rowspan=1 > Female </td><td class="highlighted"  colspan=1 rowspan=1 > 5,721 </td><td colspan=1 rowspan=1 > 4,025 </td><td colspan=1 rowspan=1 > 1,695 </td><td colspan=1 rowspan=1 > 1 </td><td colspan=1 rowspan=1 > 609 </td></tr>
</table>
Question:
What is the population of Samba in total and for each gender?
Answer:
Samba has a population of 12,700 of which 6,979 (55%) are males while 5,721 (45%) are females.