function main(input) {
  const args = input;
  var eraser = args.split('eraser');
  var joint1 = eraser.join('');
  var erase = joint1.split('erase');
  var joint2 = erase.join('');
  var dremer = joint2.split('dremer');
  var joint3 = dremer.join('');
  var dream = joint3.split('dream');
  var result = dream.filter(function(value,index,array){
    	return value !== '';
	});
  if(result.length === 0){
    console.log('Yes');
  }else{
    console.log('No');
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));