#!/usr/bin/env python
# -*- coding: utf-8 -*-

__author__ = 'Marco Torreggiani'

import sys


fil = open(sys.argv[1], 'r')
test_cases=fil.read().strip().splitlines()

for test in test_cases:
    x=bin(int(test))
    print str(x)[2:]