import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); String s=new String(); int a=99; s=sc.next(); sc.close(); for(int i=0;ik-i+1) a=k-i+1; if(a<99) System.out.print(a); else System.out.print(-1); } }