Table:
rank	nation	gold	silver	bronze	total

1	china (chn)	3	2	1	6

2	south korea (kor)	1	0	0	1

3	japan (jpn)	0	2	0	2

4	chinese taipei (tpe)	0	0	1	1

4	indonesia (ina)	0	0	1	1

4	saudi arabia (ksa)	0	0	1	1

total	total	4	4	4	12

This picture illustrates a table. Please represent this table with the latex-format in text.

\begin{tabular}{|c|c|c|c|c|c|}
\hline
 rank & nation & gold & silver & bronze & total   \\
\hline
 1 & china (chn) & 3 & 2 & 1 & 6   \\
\hline
 2 & south korea (kor) & 1 & 0 & 0 & 1   \\
\hline
 3 & japan (jpn) & 0 & 2 & 0 & 2   \\
\hline
 4 & chinese taipei (tpe) & 0 & 0 & 1 & 1   \\
\hline
 4 & indonesia (ina) & 0 & 0 & 1 & 1   \\
\hline
 4 & saudi arabia (ksa) & 0 & 0 & 1 & 1   \\
\hline
 total & total & 4 & 4 & 4 & 12   \\
\hline
\end{tabular}