import java.io.*; import java.util.*; class Main { public static void main(String args[])throws Exception { BufferedReader bu=new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb=new StringBuilder(); String s=bu.readLine(); if(s.length()==2) sb.append("Yes\n"); else sb.append("No\n"); System.out.print(sb); } }