import java.util.*; public class main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); char[] chars = s.toCharArray(); int charlonger = s.length(); int i=0; int flag =0; int a=0,b=9999; int con=1; for(;i0){ System.out.println(b); }else{ System.out.println("-1"); } } }