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

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

import java.time.* ;

/* 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[] parts = "1658443006.285000000".split( "\\." ) ;
		long seconds = Long.parseLong( parts [ 0 ] ) ;
		long nanos = Long.parseLong( parts [ 1 ] ) ;
		System.out.println( seconds + " " + nanos ) ;
		
		Instant instant = Instant.ofEpochSecond( seconds , nanos ) ;
		
		ZoneId z = ZoneId.of( "Asia/Tokyo" ) ;
		ZonedDateTime zdt = instant.atZone( z ) ;
		
		System.out.println( instant ) ;
		System.out.println( zdt ) ;
	}
}