1068: 二进制数
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);String s=cin.next();int result=0;for(int i=0;i<s.length();i++){
char ch=s.charAt(i);result=result*2+ch-'0';}System.out.println(result);}
}