public class Sample124 {
	public static boolean isLeepYear(int year) {
		if (!isDividedBy4(year)) return false;
		String sYear = String.valueOf(year);
		if (sYear.endsWith("00")) {
			return isDividedBy4(Integer.parseInt(sYear.substring(0, sYear.length() - 2)));
		}
		return true;
	}
	private static boolean isDividedBy4(int num) {
		return (num & 3) == 0;
	}

	public static void main(String[] args) {
		System.out.println("1900:" + isLeepYear(1900));
		System.out.println("2000:" + isLeepYear(2000));
		System.out.println("2008:" + isLeepYear(2008));
		System.out.println("2100:" + isLeepYear(2100));
	}
}
