def to_weekday(n):
    """Returns a string with the day of the week's name, given its number."""

    weekdays = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
    return weekdays[n]