Create a program in Python to convert a given number of days to years, months and days.
def convert_to_ymd(days):
  years = days // 365
  months = (days % 365) // 30
  days = (days % 365) % 30
  return years, months, days