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

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/* 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
	{
		SimpleDateFormat input = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss Z",
		    Locale.ENGLISH);
	    SimpleDateFormat output = new SimpleDateFormat("yyyy-MM-dd");
	
	    Date date = input.parse("Wed, 30 Mar 2016 01:01:01 +0000");
	    String outdate = output.format(date);
	    System.out.println(outdate);
	}
}