## We'll be we'll be counting Sundays

def moveDayPointer(pointer, numOfDays):
    return (pointer + numOfDays) % 7

def main():
    oneHotDays = [0,0,0,0,0,0,1]  ## onehot encode days - 1 is Sunday
    months = [31,28,31,30,31,30,31,31,30,31,30,31]
    numOfSuns = 0

    ## root day -- Tuesday, January 1st, 1901
    dayPointer = 1
    monthPointer = 12

    for year in range(1901, 2001):
        for month in range(0,12):
            if year % 4 == 0 and month == 1:
                dayPointer = moveDayPointer(dayPointer, 29)
            else :
                dayPointer = moveDayPointer(dayPointer, months[month])

            numOfSuns += oneHotDays[dayPointer]
    print(numOfSuns)


if __name__ == '__main__':
    main()

11ec365106a73c7d7c9361dd7a5211102184b2ea
<mask token>

<mask token>


def main():
    oneHotDays = [0, 0, 0, 0, 0, 0, 1]
    months = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
    numOfSuns = 0
    dayPointer = 1
    monthPointer = 12
    for year in range(1901, 2001):
        for month in range(0, 12):
            if year % 4 == 0 and month == 1:
                dayPointer = moveDayPointer(dayPointer, 29)
            else:
                dayPointer = moveDayPointer(dayPointer, months[month])
            numOfSuns += oneHotDays[dayPointer]
    print(numOfSuns)


<mask token>

def moveDayPointer(pointer, numOfDays):
    return (pointer + numOfDays) % 7


def main():
    oneHotDays = [0, 0, 0, 0, 0, 0, 1]
    months = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
    numOfSuns = 0
    dayPointer = 1
    monthPointer = 12
    for year in range(1901, 2001):
        for month in range(0, 12):
            if year % 4 == 0 and month == 1:
                dayPointer = moveDayPointer(dayPointer, 29)
            else:
                dayPointer = moveDayPointer(dayPointer, months[month])
            numOfSuns += oneHotDays[dayPointer]
    print(numOfSuns)


<mask token>

def moveDayPointer(pointer, numOfDays):
    return (pointer + numOfDays) % 7


def main():
    oneHotDays = [0, 0, 0, 0, 0, 0, 1]
    months = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
    numOfSuns = 0
    dayPointer = 1
    monthPointer = 12
    for year in range(1901, 2001):
        for month in range(0, 12):
            if year % 4 == 0 and month == 1:
                dayPointer = moveDayPointer(dayPointer, 29)
            else:
                dayPointer = moveDayPointer(dayPointer, months[month])
            numOfSuns += oneHotDays[dayPointer]
    print(numOfSuns)


if __name__ == '__main__':
    main()

## We'll be we'll be counting Sundays

def moveDayPointer(pointer, numOfDays):
    return (pointer + numOfDays) % 7

def main():
    oneHotDays = [0,0,0,0,0,0,1]  ## onehot encode days - 1 is Sunday
    months = [31,28,31,30,31,30,31,31,30,31,30,31]
    numOfSuns = 0

    ## root day -- Tuesday, January 1st, 1901
    dayPointer = 1
    monthPointer = 12

    for year in range(1901, 2001):
        for month in range(0,12):
            if year % 4 == 0 and month == 1:
                dayPointer = moveDayPointer(dayPointer, 29)
            else :
                dayPointer = moveDayPointer(dayPointer, months[month])

            numOfSuns += oneHotDays[dayPointer]
    print(numOfSuns)


if __name__ == '__main__':
    main()
