#!/usr/bin/env python3 import sys def main(): print("Yes" if len(input()) == 2 else "No") if __name__ == '__main__': main()