@@ -0,0 +1,773 @@
+// http://codeforces.com/problemset/problem/1008/A%0A%0Aimport java.util.Scanner;%0A%0Apublic class Solution %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09Scanner read = new Scanner(System.in);%0A%0A%09%09String s = read.nextLine();%0A%09%09%0A%09%09final String VOWELS = %22aouie%22;%0A%09%09%0A%09%09boolean isBerlanese = true;%0A%09%09for (int i = 0; i %3C s.length(); ++i) %7B%0A%09%09%09char c = s.charAt(i);%0A%09%09%09boolean isConsonant = !( VOWELS.contains(String.valueOf(c)) );%0A%09%09%09if (isConsonant) %7B%0A%09%09%09%09if (c != 'n') %7B%0A%09%09%09%09%09if ( i+1 == s.length() %7C%7C%0A%09%09%09%09%09%09 !( VOWELS.contains(String.valueOf(s.charAt(i+1))) )%0A%09%09%09%09%09   ) %0A%09%09%09%09%09%7B%0A%09%09%09%09%09%09isBerlanese = false;%0A%09%09%09%09%09%09break;%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09if (isBerlanese) %7B%0A%09%09%09System.out.println(%22YES%22);%0A%09%09%7D%0A%09%09else %7B%0A%09%09%09System.out.println(%22NO%22);%0A%09%09%7D%0A%0A%09%09// Close scanner%0A%09%09read.close();%0A%09%7D%0A%0A%7D%0A

Create Romaji.java