#41573: python一行解


12ycoder (即將進入top 2000!)


int(a, b)    # a : str, b : 進位制

print(int(input(), 2))