Input (grade 11): In the beginning of the 14th century it became one of the seats of the Dukes of Masovia, becoming the capital of Masovia in 1413.
Output (grade 4): It became the capital of Poland in 1596.