print('Yes!' if all(0 <= int(i) <= 255 for i in input().split('.')) else 'No!')

秒了