import java.io.IOException; import java.util.NoSuchElementException; public class Main{ public static void main(String[] args){ FastScanner sc = new FastScanner(); String N = sc.next(); int L = N.length(); if(L==1){ System.out.println(-1); return; } if(N.charAt(0)=='1'){ boolean b = true; for(int i=1;i