Input (grade 5): It was renamed Siam from 1945 to May 11, 1949, after which it was again renamed Thailand.
Output (grade 4): It was again called Siam between 1945 and May 11 1949, when it changed back to Thailand.