#T573. 高斯日记
高斯日记
Description
The great mathematician Gauss had a good habit: no matter what, he always kept a diary.
There was something unique about his diary—he never noted the year, month, or day. Instead, he used an integer, such as: 4210.
Later, people learned that the integer represented the date, indicating the number of days that had passed since Gauss's birth. This might also be a good habit, as it constantly reminded its owner: another day has passed, and how much time is left to waste?
Gauss was born on: April 30, 1777.
In the diary entry marking the discovery of an important theorem, the number was: 5343. From this, it can be calculated that the date was: December 15, 1791.
The diary entry marking the day Gauss earned his doctoral degree was labeled: 8271.
Please calculate the year, month, and day when Gauss earned his doctoral degree.
Note: The day Gauss was born counts as day 1. For example, if the day count is 3, the date would be 1777-5-2.
Input Format
A number.
Output Format
yyyy-mm-dd
一个数字
答案
## Source
CodesOnline
The translation preserves the original markdown heading format (##) and the content "CodesOnline" remains unchanged as it is a proper name/term that does not require translation. The structure and formatting are identical to the source.