public class Main { public static void main(String[] args){ new Main().run(); } private void run(){ System.out.println(bin2Ham(dec2Bin(bin2Dec(ham2Bin(new java.util.Scanner(System.in).nextLine()))*2))); } private int bin2Dec(String str){ int ret=0; for(int i=0;i