# coding:utf-8
import datetime as dt
calender = dt.datetime(2015, 1, 1)
print(calender)
year = 365
ans = 0
for i in range(year-1):
    calender += dt.timedelta(days=1)
    m = calender.month
    d = calender.day
    if d < 10:
        if m == 0 + d:
            ans += 1
        else:
            continue
    elif d < 20:
        if m == 1 + d:
            ans += 1
        else:
            continue
    elif d < 30:
        if m == 2 + d:
            ans += 1
        else:
            continue
    else:
        if m == 3 + d:
            ans += 1
        else:
            continue
print(ans)