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

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

import java.time.* ;
import java.time.format.* ;
import java.time.temporal.* ;
import java.time.chrono.* ;
import java.time.zone.* ;


/* 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
	{
		System.out.println( "THEN" ) ;
		System.out.println(
		    ZoneId
		    .of( "America/New_York" )
		    .getRules()
		    .isDaylightSavings( 
		        ZonedDateTime
		        .of(
		        	LocalDate.of( 2013 , Month.APRIL , 5 ) ,
		        	LocalTime.of( 15 , 34 ) ,
		        	ZoneId.of( "America/New_York")
		        )
		        .toInstant()
		    )
		);
		
		System.out.println(
		    ZoneId
		    .of( "America/New_York" )
		    .getRules()
		    .getOffset( 
		        ZonedDateTime
		        .of(
		        	LocalDate.of( 2013 , Month.APRIL , 5 ) ,
		        	LocalTime.of( 15 , 34 ) ,
		        	ZoneId.of( "America/New_York")
		        )
		        .toInstant()
		    )
		);
		
		
		System.out.println( "NOW" ) ;
		System.out.println(
		    ZoneId
		    .of( "America/New_York" )
		    .getRules()
		    .isDaylightSavings( 
                Instant.now() ;
		    )
		);
		
		System.out.println(
		    ZoneId
		    .of( "America/New_York" )
		    .getRules()
		    .getOffset( 
                Instant.now() ;
		    )
		);

	}
}