1.

/**
* Angewandte Mathematik, SS11
* Problem: 10499 The Land of Justice
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=16&page=show_problem&problem=1440
*
* @author Unverzart Michael
* @author Wurth Manuel
* @version 1.0, 11/6/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.848
*/

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(
System.in));
String inputLine;
while ((inputLine = reader.readLine()) != null) {
long n = new Long(inputLine);
if(n<1) break;
// pro Schnitt erhöht sich die Gesamtoberfläche um 25%
if(n>1)System.out.println(n*25+"%");
else System.out.println("0%");
}
}
}

.------------------------------------------


1.

/**
* FWP, Ausgewählte Probleme aus dem ACM Programming Contest, WS10/11
* Problem: 10499 The Land of Justice
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=16&page=show_problem&problem=1440
*
* @author Fabian Liebl
* @version 1.0, 10/06/2010
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 1.224
*/

import java.io.*;

public class Main {

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

long n = Long.parseLong(inputReader.readLine());

while (n > 0) {
if (n == 1) {
System.out.println("0%");
} else {
System.out.printf("%d%%\n", (n*100)/4);
}

n = Long.parseLong(inputReader.readLine());
}
}

}