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

import java.util.TimeZone;
import java.text.*;
import java.util.Date;;

class Ideone {

    public static void main(String[] args) 
    {

            SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");     
            sdf.setTimeZone(TimeZone.getTimeZone("America/Sao_Paulo"));
            try

            {   
                String inputdate = "20161016052355";
                Date t = sdf.parse(inputdate);  
                
                SimpleDateFormat out = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss zzzz");
                out.setTimeZone(TimeZone.getTimeZone("America/Sao_Paulo"));
                System.out.println(out.format(t));
            }
            catch(ParseException e)
            {

            }    
    }
}