s = input() str_input = list(s) ushi = 0 space = 0 for str_linput in str_input: if(space == 0): if(str_linput == ' '): ushi = 0 break space = 1 continue elif(space == 1): if(str_linput == ' '): ushi = 1 else: ushi = 0 if(ushi == 0): break space = 0 continue print() if(ushi == 1): print('Yes') else: print('No')