while(y=readline()) print(y + ' is ' + ((y % 4 === 0) && (y % 100 !== 0) || y % 400 === 0 ? '' : 'not ') + 'a leap year.')