/* 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
	{

	    String input = "2020-06-01T11:04:02+02:00" ;
	    
	    OffsetDateTime odt = OffsetDateTime.parse( input ) ;
	    ZoneOffset offset = odt.getOffset() ;
	    
	    DateTimeFormatter f = DateTimeFormatter.ofPattern( "uuuu-MM-dd'T'HH:mm:ss.SSSxx" ) ;     
	    String output = odt.format( f ) ;
	    
	    ZoneId z = ZoneId.of( "Asia/Kolkata" ) ; 
        ZonedDateTime zdt = odt.atZoneSameInstant( z ) ;
	    
	    System.out.println( "odt.toString(): " + odt ) ;
	    System.out.println( "offset.toString(): " + offset ) ;
	    System.out.println( "output: " + output ) ;
	    System.out.println( "zdt.toString(): " + zdt ) ;
    
	}
}