public static void main(String[] args){
		Scanner cin = new Scanner(System.in);
		str = cin.next();	
		for(int i = 0; i != str.length(); i ++)
			digits[intValue(i)] ++;
		
		boolean flag = true;
		int carry = 0;
		for(int i = str.length() - 1; i >= 0; i--){
			result[i] = intValue(i)*2%10 + carry;
			digits[result[i]] --;
			carry = intValue(i)*2/10;
		}
		
		if (carry != 0 )
			flag = false;
		
		for (int i = 1; i < 10; i ++)
			if (digits[i] != 0)
				flag = false;
		
		//result
		if (flag)
			System.out.println("Yes");
		else
			System.out.println("No");
		
		if (carry != 0)
			System.out.print(carry);
		for (int i = 0 ; i != str.length(); i ++)
			System.out.print(result[i]);
		
	}