#include <iostream>
using namespace std;
int main()
{
int numb;
cin >> numb;
int mas[5];
int kilkmas = 0;
for(int i=0;i<5;i++)
{
int ostdiv = numb % 2;
if (ostdiv == 0)
mas[kilkmas] = 0;
else
mas[kilkmas] = 1;
kilkmas++;
numb = numb / 2;
}
for (int i = 4; i >= 0; i--)
{
cout << mas[i];
}
}