#include <cstdio>
using namespace std;
//=======================================================
// WriteInBinary
//=======================================================
// WriteInBinary(n) writes out the binary representation
// of n.
//=======================================================
void WriteInBinary(const long n)
{
if(n > 1)
{
WriteInBinary(n/2);
}
printf("%ld", n%2);
}
int main()
{
long n;
scanf("%ld", &n);
WriteInBinary(n);
return 0;
}