# Python Program to Convert the Days into Years, Weeks, and Days
print("Enter the days::")
d, y, w = int(input()), None, None
# d = days
# y = years
# w = weeks
# Conversion of days in to years, weeks and days
y = (int)(d / 365)
w = (int)((d % 365) / 7)
d = (int)(d - ((y * 365) + (w)))
# Output
print(y, " Year, ", w, " Weeks, and ", d, " Days\n")