/* package whatever; // don't place package name! */

import java.util.*;
import java.text.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		String string = "Tue Dec 30 14:28:38 CET 2014";
		try {
			new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.ENGLISH).parse(string);
			System.out.println("OK ENGLISH");
		} catch (Exception ex) {
			System.out.println("KO ENGLISH");
		}

		try {
			new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.GERMAN).parse(string);
			System.out.println("OK GERMAN");
		} catch (Exception ex) {
			System.out.println("KO GERMAN");
		}
	}
}