#include<stdio.h>
#include<string.h>
int main()
{char arr[1000];int count=0;gets(arr);//在数组中输入字符串int len=strlen(arr);//求字符串长度printf("%d\n",len);for(int i=0;i<len;i++){if(arr[i]=='r'){if(arr[i+1]=='e'){if(arr[i+2]=='d'){count=count+1;}}}}printf("%d\n",count);if(count>=2){printf("Yse\n");}else{printf("No\n");}return 0;
}