public class Test {
public static void main(String[] args) {
String src = System.console().readLine();
int i = Integer.parseInt(src);//This method will give the failed reason.
String aim = "";
while (i > 1) {
aim = i % 2 + aim;
i /= 2;
}
aim = i+aim;
System.out.println(aim);
}
}