#! /usr/bin/env python
# -*- coding: utf-8 -*-
'''question url: http://www.pythonchallenge.com/pc/return/uzi.html
answer url: http://www.pythonchallenge.com/pcc/return/mozart.html
'''

# second youngest
# 1**6.1.27. it might be a birthday, beacuse we should buy flower for that day.
from calendar import isleap
from datetime import date
TUESDAY = 1


def main():
    for year in range(1006, 2000, 10):
        t = date(year, 1, 27)
        if isleap(year) and t.weekday() == TUESDAY:
            print t.isoformat()


if __name__ == '__main__':
    main()
