# Arup Guha
# 10/13/2020
# Basic Function Example - idea of function main
# Taking idea from P5 - printing just one month.

def main():

    # Get # of days in a month
    days = int(input("How many days in a month?\n"))

    # Header for calendar.
    print("S\tM\tT\tW\tR\tF\tS")

    # Loop through days.
    for day in range(1,days+1):

        # Safe to print the day with a tab.
        print(day,end="\t")

        # If we're at the end of the week, go to a new line.
        if day%7 == 0:
            print()

# Functions only run if called!!!
main()
