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

class Ideone {
  public static void main (String[] args) throws java.lang.Exception {
    for (double d : new double [] {0., 2., -2., 4503599627370496., 9007199254740992., 9007199254740994., 75.38}) {
      String bits = Long.toBinaryString(Double.doubleToLongBits(d));
      bits = "0".repeat(64 - bits.length()) + bits;
      
      String m = bits.substring(12);
    
      System.out.println(d);
      System.out.println(bits);
      System.out.println(m);
      System.out.println();
    }
  }
}