print('YNeos'[len(input())!=2::2])