Table:
|  |  | Fiscal |  |
| --- | --- | --- | --- |
| SALES | 2019 | 2018 | 2017 |
| United States | $339,585 | $309,495 | $297,699 |
| Foreign countries: |  |  |  |
| South Korea | 313,461 | 652,313 | 628,369 |
| China | 194,653 | 235,568 | 162,316 |
| Japan | 138,028 | 180,223 | 154,985 |
| Asia-Pacific, other | 93,389 | 124,733 | 107,713 |
| Germany | 145,285 | 166,926 | 145,835 |
| Europe, other | 148,680 | 171,936 | 162,162 |
| Rest of World | 57,559 | 61,379 | 64,232 |
| Total foreign countries sales | 1,091,055 | 1,593,078 | 1,425,612 |
| Total sales | $1,430,640 | $1,902,573 | $1,723,311 |
Paragraphs:
17. SEGMENT AND GEOGRAPHIC INFORMATION (Continued)
Sales to unaffiliated customers are as follows (in thousands):
Question:
In which years was the amount of Sales to unaffiliated customers calculated?