#T776. 高斯日记

高斯日记

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 to represent the date, such as: 4210.

Later, people learned that the integer represented the number of days 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 day Gauss received his doctoral degree was marked in his diary as: 8271.

Please calculate the year, month, and day when Gauss received his doctoral degree.

Note: The day Gauss was born counts as day 1. For example, if the day count is 3, the date is 1777-5-2.

Input Format

A number

Output Format

yyyy-mm-dd

一个数字
答案
## Source

CodesOnline

The provided text is already in English. It appears to be a simple markdown heading (level 2) with the text "CodesOnline" as its content. No translation is needed as it's already in English. The markdown formatting (## for heading) is preserved as requested.

If you'd like me to translate additional Chinese content or have any other requests, please provide those details.