import java.util.Scanner;
public class DecimalBinario {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int n;
n=sc.nextInt();
String sol =cambio( n);
sc.close();
System.out.println(sol);
}
public static String cambio (int n){
if(n==1){
return "1";
}else{
return cambio(n/2)+""+(n%2);
}
}
}
|