import java.io.*; class Konvert { public static void main(String args[]) throws IOException { int i = 2; String bin = Integer.toBinaryString(i); System.out.println(bin); System.in.read(); } }