//第 4 問: ABC 087 B - Coinsi (200 点)
/*
 * dreamererasereraserdream
erasereraserdream
reraserdream
NO
 */

import java.util.Scanner;

public class Main{

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		String S = scan.next();
		StringBuilder sb = new StringBuilder();
		sb.append(S);

		/*
		String A = "";
		String B = "";
		String C = "";
		*/

		while(true) {

			int counter = sb.length();

			if (counter > 7) {

				if (sb.substring(0,8).equals("dreamera")){

					sb = sb.delete(0,5);

				}
				else if(sb.substring(0,7).equals("dreamer")){

					sb = sb.delete(0,7);

				}
				else if(sb.substring(0,6).equals("eraser")){

					sb = sb.delete(0,6);
					//System.out.println("Err");

				}
				else if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				}

			//System.out.println(sb);

			}
			else if (counter == 7) {
				if(sb.toString().equals("dreamer")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("B");
					break;
				}

			}
			else if (counter == 6) {

				if(sb.toString().equals("eraser")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("C");
					break;
				}

			}
			else if (counter == 5) {
				if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				}
			}
			else {
				System.out.println("NO");
				//System.out.println("E");
				break;
			}

			//System.out.println(sb);

		}

	}
}
 import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		String S = scan.next();
		StringBuilder sb = new StringBuilder();
		sb.append(S);

		/*
		String A = "";
		String B = "";
		String C = "";
		*/

		while(true) {

			int counter = sb.length();

			if (counter > 7) {

				if (sb.substring(0,8).equals("dreamera")){

					sb = sb.delete(0,5);

				}
				else if(sb.substring(0,7).equals("dreamer")){

					sb = sb.delete(0,7);

				}
				else if(sb.substring(0,6).equals("eraser")){

					sb = sb.delete(0,6);
					//System.out.println("Err");

				}
				else if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				}

			//System.out.println(sb);

			}
			else if (counter == 7) {
				if(sb.toString().equals("dreamer")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("B");
					break;
				}

			}
			else if (counter == 6) {

				if(sb.toString().equals("eraser")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("C");
					break;
				}

			}
			else if (counter == 5) {
				if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				}
			}
			else {
				System.out.println("NO");
				//System.out.println("E");
				break;
			}

			//System.out.println(sb);

		}

	}
} Main public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		String S = scan.next();
		StringBuilder sb = new StringBuilder();
		sb.append(S);

		/*
		String A = "";
		String B = "";
		String C = "";
		*/

		while(true) {

			int counter = sb.length();

			if (counter > 7) {

				if (sb.substring(0,8).equals("dreamera")){

					sb = sb.delete(0,5);

				}
				else if(sb.substring(0,7).equals("dreamer")){

					sb = sb.delete(0,7);

				}
				else if(sb.substring(0,6).equals("eraser")){

					sb = sb.delete(0,6);
					//System.out.println("Err");

				}
				else if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				}

			//System.out.println(sb);

			}
			else if (counter == 7) {
				if(sb.toString().equals("dreamer")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("B");
					break;
				}

			}
			else if (counter == 6) {

				if(sb.toString().equals("eraser")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("C");
					break;
				}

			}
			else if (counter == 5) {
				if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				}
			}
			else {
				System.out.println("NO");
				//System.out.println("E");
				break;
			}

			//System.out.println(sb);

		}

	} main {

		Scanner scan = new Scanner(System.in);

		String S = scan.next();
		StringBuilder sb = new StringBuilder();
		sb.append(S);

		/*
		String A = "";
		String B = "";
		String C = "";
		*/

		while(true) {

			int counter = sb.length();

			if (counter > 7) {

				if (sb.substring(0,8).equals("dreamera")){

					sb = sb.delete(0,5);

				}
				else if(sb.substring(0,7).equals("dreamer")){

					sb = sb.delete(0,7);

				}
				else if(sb.substring(0,6).equals("eraser")){

					sb = sb.delete(0,6);
					//System.out.println("Err");

				}
				else if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				}

			//System.out.println(sb);

			}
			else if (counter == 7) {
				if(sb.toString().equals("dreamer")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("B");
					break;
				}

			}
			else if (counter == 6) {

				if(sb.toString().equals("eraser")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("C");
					break;
				}

			}
			else if (counter == 5) {
				if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				}
			}
			else {
				System.out.println("NO");
				//System.out.println("E");
				break;
			}

			//System.out.println(sb);

		}

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String S = scan.next(); S scan.next() scan.next scan StringBuilder sb = new StringBuilder(); sb new StringBuilder() sb.append(S) sb.append sb S while(true) {

			int counter = sb.length();

			if (counter > 7) {

				if (sb.substring(0,8).equals("dreamera")){

					sb = sb.delete(0,5);

				}
				else if(sb.substring(0,7).equals("dreamer")){

					sb = sb.delete(0,7);

				}
				else if(sb.substring(0,6).equals("eraser")){

					sb = sb.delete(0,6);
					//System.out.println("Err");

				}
				else if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				}

			//System.out.println(sb);

			}
			else if (counter == 7) {
				if(sb.toString().equals("dreamer")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("B");
					break;
				}

			}
			else if (counter == 6) {

				if(sb.toString().equals("eraser")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("C");
					break;
				}

			}
			else if (counter == 5) {
				if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				}
			}
			else {
				System.out.println("NO");
				//System.out.println("E");
				break;
			}

			//System.out.println(sb);

		} true {

			int counter = sb.length();

			if (counter > 7) {

				if (sb.substring(0,8).equals("dreamera")){

					sb = sb.delete(0,5);

				}
				else if(sb.substring(0,7).equals("dreamer")){

					sb = sb.delete(0,7);

				}
				else if(sb.substring(0,6).equals("eraser")){

					sb = sb.delete(0,6);
					//System.out.println("Err");

				}
				else if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				}

			//System.out.println(sb);

			}
			else if (counter == 7) {
				if(sb.toString().equals("dreamer")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("B");
					break;
				}

			}
			else if (counter == 6) {

				if(sb.toString().equals("eraser")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("C");
					break;
				}

			}
			else if (counter == 5) {
				if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				}
			}
			else {
				System.out.println("NO");
				//System.out.println("E");
				break;
			}

			//System.out.println(sb);

		} int counter = sb.length(); counter sb.length() sb.length sb if (counter > 7) {

				if (sb.substring(0,8).equals("dreamera")){

					sb = sb.delete(0,5);

				}
				else if(sb.substring(0,7).equals("dreamer")){

					sb = sb.delete(0,7);

				}
				else if(sb.substring(0,6).equals("eraser")){

					sb = sb.delete(0,6);
					//System.out.println("Err");

				}
				else if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				}

			//System.out.println(sb);

			}
			else if (counter == 7) {
				if(sb.toString().equals("dreamer")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("B");
					break;
				}

			}
			else if (counter == 6) {

				if(sb.toString().equals("eraser")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("C");
					break;
				}

			}
			else if (counter == 5) {
				if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				}
			}
			else {
				System.out.println("NO");
				//System.out.println("E");
				break;
			} counter > 7 counter 7 {

				if (sb.substring(0,8).equals("dreamera")){

					sb = sb.delete(0,5);

				}
				else if(sb.substring(0,7).equals("dreamer")){

					sb = sb.delete(0,7);

				}
				else if(sb.substring(0,6).equals("eraser")){

					sb = sb.delete(0,6);
					//System.out.println("Err");

				}
				else if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				}

			//System.out.println(sb);

			} if (sb.substring(0,8).equals("dreamera")){

					sb = sb.delete(0,5);

				}
				else if(sb.substring(0,7).equals("dreamer")){

					sb = sb.delete(0,7);

				}
				else if(sb.substring(0,6).equals("eraser")){

					sb = sb.delete(0,6);
					//System.out.println("Err");

				}
				else if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				} sb.substring(0,8).equals("dreamera") sb.substring(0,8).equals sb.substring(0,8) sb.substring sb 0 8 "dreamera" {

					sb = sb.delete(0,5);

				} sb = sb.delete(0,5) sb sb.delete(0,5) sb.delete sb 0 5 if(sb.substring(0,7).equals("dreamer")){

					sb = sb.delete(0,7);

				}
				else if(sb.substring(0,6).equals("eraser")){

					sb = sb.delete(0,6);
					//System.out.println("Err");

				}
				else if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				} sb.substring(0,7).equals("dreamer") sb.substring(0,7).equals sb.substring(0,7) sb.substring sb 0 7 "dreamer" {

					sb = sb.delete(0,7);

				} sb = sb.delete(0,7) sb sb.delete(0,7) sb.delete sb 0 7 if(sb.substring(0,6).equals("eraser")){

					sb = sb.delete(0,6);
					//System.out.println("Err");

				}
				else if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				} sb.substring(0,6).equals("eraser") sb.substring(0,6).equals sb.substring(0,6) sb.substring sb 0 6 "eraser" {

					sb = sb.delete(0,6);
					//System.out.println("Err");

				} sb = sb.delete(0,6) sb sb.delete(0,6) sb.delete sb 0 6 if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				} (sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase")) (sb.substring(0,5).equals("dream")) sb.substring(0,5).equals sb.substring(0,5) sb.substring sb 0 5 "dream" (sb.substring(0,5).equals("erase")) sb.substring(0,5).equals sb.substring(0,5) sb.substring sb 0 5 "erase" {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				} sb = sb.delete(0,5) sb sb.delete(0,5) sb.delete sb 0 5 {
					System.out.println("NO");
					//System.out.println("A");
					break;
				} System.out.println("NO") System.out.println System.out System System.out "NO" break; if (counter == 7) {
				if(sb.toString().equals("dreamer")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("B");
					break;
				}

			}
			else if (counter == 6) {

				if(sb.toString().equals("eraser")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("C");
					break;
				}

			}
			else if (counter == 5) {
				if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				}
			}
			else {
				System.out.println("NO");
				//System.out.println("E");
				break;
			} counter == 7 counter 7 {
				if(sb.toString().equals("dreamer")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("B");
					break;
				}

			} if(sb.toString().equals("dreamer")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("B");
					break;
				} sb.toString().equals("dreamer") sb.toString().equals sb.toString() sb.toString sb "dreamer" {
					System.out.println("YES");
					break;
				} System.out.println("YES") System.out.println System.out System System.out "YES" break; {
					System.out.println("NO");
					//System.out.println("B");
					break;
				} System.out.println("NO") System.out.println System.out System System.out "NO" break; if (counter == 6) {

				if(sb.toString().equals("eraser")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("C");
					break;
				}

			}
			else if (counter == 5) {
				if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				}
			}
			else {
				System.out.println("NO");
				//System.out.println("E");
				break;
			} counter == 6 counter 6 {

				if(sb.toString().equals("eraser")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("C");
					break;
				}

			} if(sb.toString().equals("eraser")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("C");
					break;
				} sb.toString().equals("eraser") sb.toString().equals sb.toString() sb.toString sb "eraser" {
					System.out.println("YES");
					break;
				} System.out.println("YES") System.out.println System.out System System.out "YES" break; {
					System.out.println("NO");
					//System.out.println("C");
					break;
				} System.out.println("NO") System.out.println System.out System System.out "NO" break; if (counter == 5) {
				if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				}
			}
			else {
				System.out.println("NO");
				//System.out.println("E");
				break;
			} counter == 5 counter 5 {
				if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				}
			} if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				} (sb.toString().equals("dream")) || (sb.toString().equals("erase")) (sb.toString().equals("dream")) sb.toString().equals sb.toString() sb.toString sb "dream" (sb.toString().equals("erase")) sb.toString().equals sb.toString() sb.toString sb "erase" {
					System.out.println("YES");
					break;
				} System.out.println("YES") System.out.println System.out System System.out "YES" break; {
					System.out.println("NO");
					//System.out.println("D");
					break;
				} System.out.println("NO") System.out.println System.out System System.out "NO" break; {
				System.out.println("NO");
				//System.out.println("E");
				break;
			} System.out.println("NO") System.out.println System.out System System.out "NO" break; String[] args args public class Main{

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		String S = scan.next();
		StringBuilder sb = new StringBuilder();
		sb.append(S);

		/*
		String A = "";
		String B = "";
		String C = "";
		*/

		while(true) {

			int counter = sb.length();

			if (counter > 7) {

				if (sb.substring(0,8).equals("dreamera")){

					sb = sb.delete(0,5);

				}
				else if(sb.substring(0,7).equals("dreamer")){

					sb = sb.delete(0,7);

				}
				else if(sb.substring(0,6).equals("eraser")){

					sb = sb.delete(0,6);
					//System.out.println("Err");

				}
				else if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				}

			//System.out.println(sb);

			}
			else if (counter == 7) {
				if(sb.toString().equals("dreamer")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("B");
					break;
				}

			}
			else if (counter == 6) {

				if(sb.toString().equals("eraser")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("C");
					break;
				}

			}
			else if (counter == 5) {
				if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				}
			}
			else {
				System.out.println("NO");
				//System.out.println("E");
				break;
			}

			//System.out.println(sb);

		}

	}
} public class Main{

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		String S = scan.next();
		StringBuilder sb = new StringBuilder();
		sb.append(S);

		/*
		String A = "";
		String B = "";
		String C = "";
		*/

		while(true) {

			int counter = sb.length();

			if (counter > 7) {

				if (sb.substring(0,8).equals("dreamera")){

					sb = sb.delete(0,5);

				}
				else if(sb.substring(0,7).equals("dreamer")){

					sb = sb.delete(0,7);

				}
				else if(sb.substring(0,6).equals("eraser")){

					sb = sb.delete(0,6);
					//System.out.println("Err");

				}
				else if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				}

			//System.out.println(sb);

			}
			else if (counter == 7) {
				if(sb.toString().equals("dreamer")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("B");
					break;
				}

			}
			else if (counter == 6) {

				if(sb.toString().equals("eraser")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("C");
					break;
				}

			}
			else if (counter == 5) {
				if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				}
			}
			else {
				System.out.println("NO");
				//System.out.println("E");
				break;
			}

			//System.out.println(sb);

		}

	}
} Main
//第 4 問: ABC 087 B - Coinsi (200 点)
/*
 * dreamererasereraserdream
erasereraserdream
reraserdream
NO
 */

import java.util.Scanner;

public class Main{

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		String S = scan.next();
		StringBuilder sb = new StringBuilder();
		sb.append(S);

		/*
		String A = "";
		String B = "";
		String C = "";
		*/

		while(true) {

			int counter = sb.length();

			if (counter > 7) {

				if (sb.substring(0,8).equals("dreamera")){

					sb = sb.delete(0,5);

				}
				else if(sb.substring(0,7).equals("dreamer")){

					sb = sb.delete(0,7);

				}
				else if(sb.substring(0,6).equals("eraser")){

					sb = sb.delete(0,6);
					//System.out.println("Err");

				}
				else if ((sb.substring(0,5).equals("dream")) || (sb.substring(0,5).equals("erase"))) {

					sb = sb.delete(0,5);
					//System.out.println("Err2");

				}
				else {
					System.out.println("NO");
					//System.out.println("A");
					break;
				}

			//System.out.println(sb);

			}
			else if (counter == 7) {
				if(sb.toString().equals("dreamer")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("B");
					break;
				}

			}
			else if (counter == 6) {

				if(sb.toString().equals("eraser")) {
					System.out.println("YES");
					break;
				}
				else {
					System.out.println("NO");
					//System.out.println("C");
					break;
				}

			}
			else if (counter == 5) {
				if ((sb.toString().equals("dream")) || (sb.toString().equals("erase"))) {
					System.out.println("YES");
					break;
				}
				else{
					System.out.println("NO");
					//System.out.println("D");
					break;
				}
			}
			else {
				System.out.println("NO");
				//System.out.println("E");
				break;
			}

			//System.out.println(sb);

		}

	}
}

