1. 

/**
* Angewandte Mathematik, SS09, IFB 2C
* ACM Problem #10070 - Leap Year or Not Leap Year and ...
* Link: http://icpcres.ecs.baylor.edu/onlinejudge/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=12&problem=1011&mosmsg=Submission+received+with+ID+7081856
*
* @author Andre Wolfram
* @author Christoph Miesel
* @author Robert Seilbeck
* @version 13.0, 04/20/2009
*
* Status : Accepted
* Runtime 0.360
*/

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;

public class Main {

public static void main(String[] args) throws NumberFormatException,
IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(
System.in));

String line;
boolean firstTime = true;
while ((line = reader.readLine()) != null) {
boolean ordinaryYear = true;
boolean leapYear = false;
if (!firstTime) {
System.out.println();
}
firstTime = false;
//Eingabe kann sehr lange sein.
BigInteger year = new BigInteger(line.trim());
//Schaltjahr test
if (year.mod(new BigInteger("4")).longValue() == 0
&& (year.mod(new BigInteger("100")).longValue() != 0 || year
.mod(new BigInteger("400")).longValue() == 0)) {
ordinaryYear = false;
leapYear = true;
System.out.println("This is leap year.");
}
if (year.mod(new BigInteger("15")).longValue() == 0) {
ordinaryYear = false;
System.out.println("This is huluculu festival year.");
}
if (year.mod(new BigInteger("55")).longValue() == 0 && leapYear) {
ordinaryYear = false;
System.out.println("This is bulukulu festival year.");
}
if (ordinaryYear) {
System.out.println("This is an ordinary year.");
}
}
}

}

2.

/**
* Angewandte Mathematik, SS09, IFB 2C
* ACM Problem: Leap Year or Not Leap Year and ... (10070)
* @author Christian Mitterreiter
* @author Rolf Luigs
* @version 1.0, 04/08/2009
* Status : Accepted
* Runtime: 0.420
*/

import java.math.BigInteger;
import java.util.Scanner;

public class Main {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);


while(sc.hasNext()) {

BigInteger input = new BigInteger(sc.next());
BigInteger zero = new BigInteger("0");
boolean orinary = true;
boolean leap = false;



if((input.mod(new BigInteger("400")).equals(zero) || (((input.mod(new BigInteger("4")).equals(zero)) && ((!input.mod(new BigInteger("100")).equals(zero))))))) {
System.out.println("This is leap year.");
orinary = false;
leap = true;
}

if ((input.mod(new BigInteger("15")).equals(zero))) {
System.out.println("This is huluculu festival year.");
orinary = false;
}

if ((input.mod(new BigInteger("55"))).equals(zero) && leap) {
System.out.println("This is bulukulu festival year.");
orinary = false;
}

if (orinary) {
System.out.println("This is an ordinary year.");
}

if(sc.hasNext()) System.out.println();

}
}
}

3.

/* @Problem 10070 Leap Year or Not Leap Year and ...
* @Autor Markus Stadler
* @Autor Johannes Müller
*/

import java.io.*;
import java.math.BigInteger;

class LeapYear {
public static void main (String[] args) throws Exception {
BufferedReader buin = new BufferedReader (new InputStreamReader (System.in));
Writer out = new BufferedWriter(new PrintWriter(System.out));
//String test = "1";
try {
for (int c = 0; c > -1; c++){
//test = buin.readLine();
BigInteger byear = new BigInteger (buin.readLine());
//int year = Integer.parseInt(buin.readLine());
boolean leap = false;
boolean hulu = false;
if (c > 0)
out.write("\n");
//darf nicht durch 100 teilbar sein es sei denn es ist teilbar durch 400. zusaetzlich muss es durch 4 teilbar sein
if ((byear.mod(new BigInteger("100")).longValue() != 0 || byear.mod(new BigInteger("400")).longValue() == 0 ) && byear.mod(new BigInteger("4")).longValue() == 0){
out.write ("This is leap year.\n");
leap = true;
}
if (byear.mod(new BigInteger("15")).longValue() == 0){
out.write("This is huluculu festival year.\n");
hulu = true;
}
if (byear.mod(new BigInteger("55")).longValue() == 0 && leap == true){
out.write ("This is bulukulu festival year.\n");
}
if (leap == false && hulu == false) {
out.write ("This is an ordinary year.\n");
}
}
}
catch (Exception ex){
buin.close();
out.close();
}
}
}

4.

/**
* Angewandte Mathematik, SS09, IFB 2C
* ACM Problem #10070 (Leap Year or not a Leap year...)
* http://icpcres.ecs.baylor.edu/onlinejudge/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=12&problem=1011&mosmsg=Submission+received+with+ID+7081856
*
* @author Christian Posselt
* @author Jonathan Schubert
* @version 1.0, 05/06/2009
*
* Status : Accepted
* Runtime: 0.272
*/

import java.io.*;
import java.math.BigInteger;

class Main {

public static void main(String[] args) throws IOException
{
//Set up needed variables
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String line;
StringBuilder answer = new StringBuilder();

BigInteger year;
boolean special;

while(true)
{
line = reader.readLine();

if(line==null)
break;

year = new BigInteger(line);
special = false;

//Is it a leap year?
if(BigInteger.ZERO.compareTo(year.mod(new BigInteger("400"))) == 0 || (BigInteger.ZERO.compareTo(year.mod(new BigInteger("4"))) == 0 && year.mod(new BigInteger("100")).compareTo(BigInteger.ZERO) != 0))
{
answer.append("This is leap year.");
answer.append("\n");
special = true;
}

//is it a huluculu festival year?
if(BigInteger.ZERO.compareTo(year.mod(new BigInteger("15")))==0)
{
answer.append("This is huluculu festival year.");
answer.append("\n");
special = true;
}

//is it a bulukulu festival year?
if(BigInteger.ZERO.compareTo(year.mod(new BigInteger("400"))) == 0 || (BigInteger.ZERO.compareTo(year.mod(new BigInteger("4"))) == 0 && year.mod(new BigInteger("100")).compareTo(BigInteger.ZERO) != 0))
{
if(BigInteger.ZERO.compareTo(year.mod(new BigInteger("55")))==0)
{
answer.append("This is bulukulu festival year.");
answer.append("\n");
}
}

//no special year? It's ordinary
if(!special)
{
answer.append("This is an ordinary year.");
answer.append("\n");
}

answer.append("\n");

}

answer.delete(answer.length()-1, answer.length());

System.out.print(answer.toString());


}
}