import java.util.Stack;
import java.util.Scanner;
public class Mystack {
/**
* @param args
*/
public static void main(String[] args) {
Stack<Number> mySt = new Stack<Number>();
Scanner sc = new Scanner(System.in);
System.out.print("Please input decimal number:");
int i;
int ii = sc.nextInt();
while (ii > 0) {
mySt.push(ii % 2);
ii = ii / 2;
}
int j = mySt.size();
System.out.print("Binary number is: ");
for (i = 0; i < j; i++) {
System.out.print(mySt.pop());
}
}
}