# include <stdio.h>
void convertDecimalToBinary( int num ) {
if ( num / 2 == 0 ) {
printf( "%d", num ) ;
return ;
} // if
convertDecimalToBinary( num / 2 ) ;
printf( "%d", num % 2 ) ;
} // convertDecimalToBinary()
int main( ) {
int number = 0 ;
while ( scanf( "%d", &number ) != EOF ) {
convertDecimalToBinary( number ) ;
printf( "\n" ) ;
number = 0 ;
} // while
return 0 ;
} // main()