#41283: python


suyueh (suyueh)


while True:
  try:
    s = int(input())
    print(bin(s)[2::])
  except:
    break