/* 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 input = "1901-01-01T00:20:40.000+02:20:40" ;
		OffsetDateTime odt = OffsetDateTime.parse( input ) ;
		Instant instant = odt.toInstant() ;
		
		System.out.println( "odt.toString(): " + odt ) ;
		System.out.println( "instant.toString(): " + instant ) ;
	}
}