import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter an integer: "); int number = input.nextInt(); int mask = 1; for(int i = 15; i > 0; i--) { int a = number >> i; int b = a & mask; System.out.print(b); } System.out.println(); } }