問題文

# -*- coding: utf-8 -*-
for i, e in enumerate(range(1896, 2016, 4)):
    if not e in [1916, 1940, 1944]:
        print '第{0:2}回  {1}年'.format(i+1, e)

#少しダメな例、上記の方が効率的

#coding:utf-8
for n in range(30):
	 y = 1896 + 4*n
	 if y == 1916 or y == 1940 or y == 1944:
		 continue
	 else:
		 print "第" + str(n + 1) + "回   " + str(y)