#!/usr/bin/env python3 s = input() print('Yes' if 2 * len(s.split()) - 1 == len(s) and ' '.join(s.split()) == s else 'No')