@@ -0,0 +1,633 @@
+// http://codeforces.com/problemset/problem/59/A%0A%0Aimport java.util.Scanner;%0A%0Apublic class Solution %7B%0A%09%0A%09public static void main(String%5B%5D args) %7B%0A%09%09Scanner read = new Scanner(System.in);%0A%09%09%0A%09%09String line = read.nextLine();%0A%09%09%0A%09%09int lowerCaseCount = 0;%0A%09%09int upperCaseCount = 0;%0A%09%09for (int i = 0; i %3C line.length(); ++i) %7B%0A%09%09%09if ( Character.isLowerCase(line.charAt(i)) ) %7B%0A%09%09%09%09lowerCaseCount++;%0A%09%09%09%7D%0A%09%09%09else %7B%0A%09%09%09%09upperCaseCount++;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09if (lowerCaseCount %3C upperCaseCount) %7B%0A%09%09%09System.out.println( line.toUpperCase() );%0A%09%09%7D%0A%09%09else %7B%0A%09%09%09System.out.println( line.toLowerCase() );%0A%09%09%7D%0A%09%09%0A%09%09// Close scanner%0A%09%09read.close();%0A%09%7D%0A%7D%0A

Create Word.java