/* package superBuBu */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
int valor = 1;
int resto = -1;
StringBuilder sb = new StringBuilder();
if (valor == 0) {
}
// enquanto o resultado da divisão por 2 for maior que 0 adiciona o resto ao início da String de retorno
while (valor > 0) {
resto = valor % 2;
valor = valor / 2;
sb.insert(0, resto);
}
System.
out.
println(formatado
); }
}
LyogcGFja2FnZSBzdXBlckJ1QnUgKi8KCmltcG9ydCBqYXZhLnV0aWwuKjsKaW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS5pby4qOwoKLyogTmFtZSBvZiB0aGUgY2xhc3MgaGFzIHRvIGJlICJNYWluIiBvbmx5IGlmIHRoZSBjbGFzcyBpcyBwdWJsaWMuICovCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCgkJaW50IHZhbG9yID0gMTsKCQlpbnQgcmVzdG8gPSAtMTsKCgkJU3RyaW5nQnVpbGRlciBzYiA9IG5ldyBTdHJpbmdCdWlsZGVyKCk7CgoJCWlmICh2YWxvciA9PSAwKSB7CgkJCVN5c3RlbS5vdXQucHJpbnRsbigiMCIpOwoJCX0KCgkJLy8gZW5xdWFudG8gbyByZXN1bHRhZG8gZGEgZGl2aXPDo28gcG9yIDIgZm9yIG1haW9yIHF1ZSAwIGFkaWNpb25hIG8gcmVzdG8gYW8gaW7DrWNpbyBkYSBTdHJpbmcgZGUgcmV0b3JubwoJCXdoaWxlICh2YWxvciA+IDApIHsKCQkJcmVzdG8gPSB2YWxvciAlIDI7CgkJCXZhbG9yID0gdmFsb3IgLyAyOwoJCQlzYi5pbnNlcnQoMCwgcmVzdG8pOwoJCX0KCiAgICAgICAgU3RyaW5nIGZvcm1hdGFkbyA9IFN0cmluZy5mb3JtYXQoIiUwNGQiLCBJbnRlZ2VyLnBhcnNlSW50KHNiLnRvU3RyaW5nKCkpKTsKICAgICAgICAKCQlTeXN0ZW0ub3V0LnByaW50bG4oZm9ybWF0YWRvKTsKCX0KfQ==