public static void main(String[] args) {
		// TODO Auto-generated method stub
			Scanner scanner = new Scanner(System.in);
			String string=scanner.next();
			int temp=0;
			int multi=0;
			if(string.length() <1)
			{
				System.out.println("-1");
				return;
			}
			else{
					if(string.charAt(0) == '0'){
						if(string.charAt(1) == 'v' || string.charAt(1) == 'V')
							Nine(string);
						else if(string.charAt(1) == 'w' || string.charAt(1) == 'W')
							Eleven(string);
						else {
							System.out.println(-1);
						}
					}
					else {
						System.out.println("-1");
					}
			}
	}