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

import java.util.*;
import java.lang.*;
import java.io.*;
import java.nio.Buffer;
import java.nio.ByteBuffer;

/* 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
	{
		long[] arr={9223372036854775800l,9223372036854775802l};
		ByteBuffer buffer = ByteBuffer.allocate( 8 * 2 );
		buffer.putLong(arr[0]);
		buffer.putLong(arr[1]);
		buffer.position(0);
		System.out.println(buffer.getLong());
		System.out.println(buffer.getLong());
		
	}
}