import java.io.*;
import java.util.*;
import static java.lang.System.out;

public class Main{
    static MyReader in = new MyReader();

    public static void main(String[] args){
        int[][] d = {{0, 0, 0, 0, 0, 0},
                    {2, 0, 9, 0, 0, 0},
                    {0, 3, 0, 0, 0, 0},
                    {0, 0, 4, 0, 0, 0},
                    {0, 0, 0, 5, 0, 0},
                    {0, 0, 0, 0, 6, 0},
                    {2, 0, 7, 0, 0, 0},
                    {0, 8, 0, 0, 0, 0},
                    {2, 0, 9, 11, 0, 0},
                    {0, 10, 0, 0, 0, 0},
                    {0, 0, 0, 11, 0, 0},
                    {0, 0, 0, 0, 0, 12},
                    {0, 0, 13, 0, 0, 0},
                    {2, 1, 9, 0, 0, 0}};
        int s = 1;
        String S = in.s();
        final int N = S.length();

        for(int i = 0; i < N; i++){
            char c = S.charAt(i);
            int x = c == 'd' ? 0 :
                    c == 'r' ? 1 :
                    c == 'e' ? 2 :
                    c == 'a' ? 3 :
                    c == 'm' ? 4 :
                    c == 's' ? 5 : 6;
            if(x == 6 || (s = d[s][x]) == 0) {
                out.println("NO");
                return;
            }
        }

        out.println((s-1)*(s-6)*(s-8)*(s-13) == 0 ? "YES" : "NO");
    }

    static class MyReader extends BufferedReader{
        MyReader(){
            super(new InputStreamReader(System.in));
        }

        String s(){
            try{return readLine();}catch(IOException e){return "";}
        }

        String[] ss(){
            return s().split(" ");
        }

        int i(){
            return Integer.parseInt(s());
        }

        int[] ii(){
            String[] ss = ss();
            int[] ii = new int[ss.length];
            for(int j = 0; j < ss.length; j++) ii[j] = Integer.parseInt(ss[j]);
            return ii;
        }

        ArrayList<Integer> li(){
            String[] ss = ss();
            ArrayList<Integer> li = new ArrayList<>();
            for(int j = 0; j < ss.length; j++) li.add(Integer.parseInt(ss[j]));
            return li;
        }

        long l(){
            return Long.parseLong(s());
        }

        long[] ll(){
            String[] ss = ss();
            long[] ll = new long[ss.length];
            for(int j = 0; j < ss.length; j++) ll[j] = Long.parseLong(ss[j]);
            return ll;
        }
    }
} import java.io.*; io.* java import java.util.*; util.* java import static java.lang.System.out; import static java.lang.System.out; import static java.lang.System.out; public class Main{
    static MyReader in = new MyReader();

    public static void main(String[] args){
        int[][] d = {{0, 0, 0, 0, 0, 0},
                    {2, 0, 9, 0, 0, 0},
                    {0, 3, 0, 0, 0, 0},
                    {0, 0, 4, 0, 0, 0},
                    {0, 0, 0, 5, 0, 0},
                    {0, 0, 0, 0, 6, 0},
                    {2, 0, 7, 0, 0, 0},
                    {0, 8, 0, 0, 0, 0},
                    {2, 0, 9, 11, 0, 0},
                    {0, 10, 0, 0, 0, 0},
                    {0, 0, 0, 11, 0, 0},
                    {0, 0, 0, 0, 0, 12},
                    {0, 0, 13, 0, 0, 0},
                    {2, 1, 9, 0, 0, 0}};
        int s = 1;
        String S = in.s();
        final int N = S.length();

        for(int i = 0; i < N; i++){
            char c = S.charAt(i);
            int x = c == 'd' ? 0 :
                    c == 'r' ? 1 :
                    c == 'e' ? 2 :
                    c == 'a' ? 3 :
                    c == 'm' ? 4 :
                    c == 's' ? 5 : 6;
            if(x == 6 || (s = d[s][x]) == 0) {
                out.println("NO");
                return;
            }
        }

        out.println((s-1)*(s-6)*(s-8)*(s-13) == 0 ? "YES" : "NO");
    }

    static class MyReader extends BufferedReader{
        MyReader(){
            super(new InputStreamReader(System.in));
        }

        String s(){
            try{return readLine();}catch(IOException e){return "";}
        }

        String[] ss(){
            return s().split(" ");
        }

        int i(){
            return Integer.parseInt(s());
        }

        int[] ii(){
            String[] ss = ss();
            int[] ii = new int[ss.length];
            for(int j = 0; j < ss.length; j++) ii[j] = Integer.parseInt(ss[j]);
            return ii;
        }

        ArrayList<Integer> li(){
            String[] ss = ss();
            ArrayList<Integer> li = new ArrayList<>();
            for(int j = 0; j < ss.length; j++) li.add(Integer.parseInt(ss[j]));
            return li;
        }

        long l(){
            return Long.parseLong(s());
        }

        long[] ll(){
            String[] ss = ss();
            long[] ll = new long[ss.length];
            for(int j = 0; j < ss.length; j++) ll[j] = Long.parseLong(ss[j]);
            return ll;
        }
    }
} Main static MyReader in = new MyReader(); in new MyReader() public static void main(String[] args){
        int[][] d = {{0, 0, 0, 0, 0, 0},
                    {2, 0, 9, 0, 0, 0},
                    {0, 3, 0, 0, 0, 0},
                    {0, 0, 4, 0, 0, 0},
                    {0, 0, 0, 5, 0, 0},
                    {0, 0, 0, 0, 6, 0},
                    {2, 0, 7, 0, 0, 0},
                    {0, 8, 0, 0, 0, 0},
                    {2, 0, 9, 11, 0, 0},
                    {0, 10, 0, 0, 0, 0},
                    {0, 0, 0, 11, 0, 0},
                    {0, 0, 0, 0, 0, 12},
                    {0, 0, 13, 0, 0, 0},
                    {2, 1, 9, 0, 0, 0}};
        int s = 1;
        String S = in.s();
        final int N = S.length();

        for(int i = 0; i < N; i++){
            char c = S.charAt(i);
            int x = c == 'd' ? 0 :
                    c == 'r' ? 1 :
                    c == 'e' ? 2 :
                    c == 'a' ? 3 :
                    c == 'm' ? 4 :
                    c == 's' ? 5 : 6;
            if(x == 6 || (s = d[s][x]) == 0) {
                out.println("NO");
                return;
            }
        }

        out.println((s-1)*(s-6)*(s-8)*(s-13) == 0 ? "YES" : "NO");
    } main {
        int[][] d = {{0, 0, 0, 0, 0, 0},
                    {2, 0, 9, 0, 0, 0},
                    {0, 3, 0, 0, 0, 0},
                    {0, 0, 4, 0, 0, 0},
                    {0, 0, 0, 5, 0, 0},
                    {0, 0, 0, 0, 6, 0},
                    {2, 0, 7, 0, 0, 0},
                    {0, 8, 0, 0, 0, 0},
                    {2, 0, 9, 11, 0, 0},
                    {0, 10, 0, 0, 0, 0},
                    {0, 0, 0, 11, 0, 0},
                    {0, 0, 0, 0, 0, 12},
                    {0, 0, 13, 0, 0, 0},
                    {2, 1, 9, 0, 0, 0}};
        int s = 1;
        String S = in.s();
        final int N = S.length();

        for(int i = 0; i < N; i++){
            char c = S.charAt(i);
            int x = c == 'd' ? 0 :
                    c == 'r' ? 1 :
                    c == 'e' ? 2 :
                    c == 'a' ? 3 :
                    c == 'm' ? 4 :
                    c == 's' ? 5 : 6;
            if(x == 6 || (s = d[s][x]) == 0) {
                out.println("NO");
                return;
            }
        }

        out.println((s-1)*(s-6)*(s-8)*(s-13) == 0 ? "YES" : "NO");
    } int[][] d = {{0, 0, 0, 0, 0, 0},
                    {2, 0, 9, 0, 0, 0},
                    {0, 3, 0, 0, 0, 0},
                    {0, 0, 4, 0, 0, 0},
                    {0, 0, 0, 5, 0, 0},
                    {0, 0, 0, 0, 6, 0},
                    {2, 0, 7, 0, 0, 0},
                    {0, 8, 0, 0, 0, 0},
                    {2, 0, 9, 11, 0, 0},
                    {0, 10, 0, 0, 0, 0},
                    {0, 0, 0, 11, 0, 0},
                    {0, 0, 0, 0, 0, 12},
                    {0, 0, 13, 0, 0, 0},
                    {2, 1, 9, 0, 0, 0}}; d {{0, 0, 0, 0, 0, 0},
                    {2, 0, 9, 0, 0, 0},
                    {0, 3, 0, 0, 0, 0},
                    {0, 0, 4, 0, 0, 0},
                    {0, 0, 0, 5, 0, 0},
                    {0, 0, 0, 0, 6, 0},
                    {2, 0, 7, 0, 0, 0},
                    {0, 8, 0, 0, 0, 0},
                    {2, 0, 9, 11, 0, 0},
                    {0, 10, 0, 0, 0, 0},
                    {0, 0, 0, 11, 0, 0},
                    {0, 0, 0, 0, 0, 12},
                    {0, 0, 13, 0, 0, 0},
                    {2, 1, 9, 0, 0, 0}} {0, 0, 0, 0, 0, 0} 0 0 0 0 0 0 {2, 0, 9, 0, 0, 0} 2 0 9 0 0 0 {0, 3, 0, 0, 0, 0} 0 3 0 0 0 0 {0, 0, 4, 0, 0, 0} 0 0 4 0 0 0 {0, 0, 0, 5, 0, 0} 0 0 0 5 0 0 {0, 0, 0, 0, 6, 0} 0 0 0 0 6 0 {2, 0, 7, 0, 0, 0} 2 0 7 0 0 0 {0, 8, 0, 0, 0, 0} 0 8 0 0 0 0 {2, 0, 9, 11, 0, 0} 2 0 9 11 0 0 {0, 10, 0, 0, 0, 0} 0 10 0 0 0 0 {0, 0, 0, 11, 0, 0} 0 0 0 11 0 0 {0, 0, 0, 0, 0, 12} 0 0 0 0 0 12 {0, 0, 13, 0, 0, 0} 0 0 13 0 0 0 {2, 1, 9, 0, 0, 0} 2 1 9 0 0 0 int s = 1; s 1 String S = in.s(); S in.s() in.s in final int N = S.length(); N S.length() S.length S for(int i = 0; i < N; i++){
            char c = S.charAt(i);
            int x = c == 'd' ? 0 :
                    c == 'r' ? 1 :
                    c == 'e' ? 2 :
                    c == 'a' ? 3 :
                    c == 'm' ? 4 :
                    c == 's' ? 5 : 6;
            if(x == 6 || (s = d[s][x]) == 0) {
                out.println("NO");
                return;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            char c = S.charAt(i);
            int x = c == 'd' ? 0 :
                    c == 'r' ? 1 :
                    c == 'e' ? 2 :
                    c == 'a' ? 3 :
                    c == 'm' ? 4 :
                    c == 's' ? 5 : 6;
            if(x == 6 || (s = d[s][x]) == 0) {
                out.println("NO");
                return;
            }
        } {
            char c = S.charAt(i);
            int x = c == 'd' ? 0 :
                    c == 'r' ? 1 :
                    c == 'e' ? 2 :
                    c == 'a' ? 3 :
                    c == 'm' ? 4 :
                    c == 's' ? 5 : 6;
            if(x == 6 || (s = d[s][x]) == 0) {
                out.println("NO");
                return;
            }
        } char c = S.charAt(i); c S.charAt(i) S.charAt S i int x = c == 'd' ? 0 :
                    c == 'r' ? 1 :
                    c == 'e' ? 2 :
                    c == 'a' ? 3 :
                    c == 'm' ? 4 :
                    c == 's' ? 5 : 6; x c == 'd' ? 0 :
                    c == 'r' ? 1 :
                    c == 'e' ? 2 :
                    c == 'a' ? 3 :
                    c == 'm' ? 4 :
                    c == 's' ? 5 : 6 c == 'd' c 'd' 0 c == 'r' ? 1 :
                    c == 'e' ? 2 :
                    c == 'a' ? 3 :
                    c == 'm' ? 4 :
                    c == 's' ? 5 : 6 c == 'r' c 'r' 1 c == 'e' ? 2 :
                    c == 'a' ? 3 :
                    c == 'm' ? 4 :
                    c == 's' ? 5 : 6 c == 'e' c 'e' 2 c == 'a' ? 3 :
                    c == 'm' ? 4 :
                    c == 's' ? 5 : 6 c == 'a' c 'a' 3 c == 'm' ? 4 :
                    c == 's' ? 5 : 6 c == 'm' c 'm' 4 c == 's' ? 5 : 6 c == 's' c 's' 5 6 if(x == 6 || (s = d[s][x]) == 0) {
                out.println("NO");
                return;
            } x == 6 || (s = d[s][x]) == 0 x == 6 x 6 (s = d[s][x]) == 0 (s = d[s][x]) s d[s][x] d[s] d s x 0 {
                out.println("NO");
                return;
            } out.println("NO") out.println out "NO" return; out.println((s-1)*(s-6)*(s-8)*(s-13) == 0 ? "YES" : "NO") out.println out (s-1)*(s-6)*(s-8)*(s-13) == 0 ? "YES" : "NO" (s-1)*(s-6)*(s-8)*(s-13) == 0 (s-1)*(s-6)*(s-8)*(s-13) (s-8) (s-1)*(s-6)*(s-8)*(s-13) (s-1) s 1 (s-6) s 6 (s-8) s 8 (s-13) s 13 0 "YES" "NO" String[] args args static class MyReader extends BufferedReader{
        MyReader(){
            super(new InputStreamReader(System.in));
        }

        String s(){
            try{return readLine();}catch(IOException e){return "";}
        }

        String[] ss(){
            return s().split(" ");
        }

        int i(){
            return Integer.parseInt(s());
        }

        int[] ii(){
            String[] ss = ss();
            int[] ii = new int[ss.length];
            for(int j = 0; j < ss.length; j++) ii[j] = Integer.parseInt(ss[j]);
            return ii;
        }

        ArrayList<Integer> li(){
            String[] ss = ss();
            ArrayList<Integer> li = new ArrayList<>();
            for(int j = 0; j < ss.length; j++) li.add(Integer.parseInt(ss[j]));
            return li;
        }

        long l(){
            return Long.parseLong(s());
        }

        long[] ll(){
            String[] ss = ss();
            long[] ll = new long[ss.length];
            for(int j = 0; j < ss.length; j++) ll[j] = Long.parseLong(ss[j]);
            return ll;
        }
    } MyReader MyReader(){
            super(new InputStreamReader(System.in));
        } MyReader {
            super(new InputStreamReader(System.in));
        } super(new InputStreamReader(System.in)) super new InputStreamReader(System.in) String s(){
            try{return readLine();}catch(IOException e){return "";}
        } s {
            try{return readLine();}catch(IOException e){return "";}
        } try{return readLine();}catch(IOException e){return "";} catch(IOException e){return "";} IOException e {return "";} return ""; "" {return readLine();} return readLine(); readLine() readLine String[] ss(){
            return s().split(" ");
        } ss {
            return s().split(" ");
        } return s().split(" "); s().split(" ") s().split s() s " " int i(){
            return Integer.parseInt(s());
        } i {
            return Integer.parseInt(s());
        } return Integer.parseInt(s()); Integer.parseInt(s()) Integer.parseInt Integer s() s int[] ii(){
            String[] ss = ss();
            int[] ii = new int[ss.length];
            for(int j = 0; j < ss.length; j++) ii[j] = Integer.parseInt(ss[j]);
            return ii;
        } ii {
            String[] ss = ss();
            int[] ii = new int[ss.length];
            for(int j = 0; j < ss.length; j++) ii[j] = Integer.parseInt(ss[j]);
            return ii;
        } String[] ss = ss(); ss ss() ss int[] ii = new int[ss.length]; ii new int[ss.length] ss.length ss ss.length for(int j = 0; j < ss.length; j++) ii[j] = Integer.parseInt(ss[j]); int j = 0; int j = 0; j 0 j < ss.length j ss.length ss ss.length j++ j++ j ii[j] = Integer.parseInt(ss[j]); ii[j] = Integer.parseInt(ss[j]) ii[j] ii j Integer.parseInt(ss[j]) Integer.parseInt Integer ss[j] ss j return ii; ii ArrayList<Integer> li(){
            String[] ss = ss();
            ArrayList<Integer> li = new ArrayList<>();
            for(int j = 0; j < ss.length; j++) li.add(Integer.parseInt(ss[j]));
            return li;
        } li {
            String[] ss = ss();
            ArrayList<Integer> li = new ArrayList<>();
            for(int j = 0; j < ss.length; j++) li.add(Integer.parseInt(ss[j]));
            return li;
        } String[] ss = ss(); ss ss() ss ArrayList<Integer> li = new ArrayList<>(); li new ArrayList<>() for(int j = 0; j < ss.length; j++) li.add(Integer.parseInt(ss[j])); int j = 0; int j = 0; j 0 j < ss.length j ss.length ss ss.length j++ j++ j li.add(Integer.parseInt(ss[j])); li.add(Integer.parseInt(ss[j])) li.add li Integer.parseInt(ss[j]) Integer.parseInt Integer ss[j] ss j return li; li long l(){
            return Long.parseLong(s());
        } l {
            return Long.parseLong(s());
        } return Long.parseLong(s()); Long.parseLong(s()) Long.parseLong Long s() s long[] ll(){
            String[] ss = ss();
            long[] ll = new long[ss.length];
            for(int j = 0; j < ss.length; j++) ll[j] = Long.parseLong(ss[j]);
            return ll;
        } ll {
            String[] ss = ss();
            long[] ll = new long[ss.length];
            for(int j = 0; j < ss.length; j++) ll[j] = Long.parseLong(ss[j]);
            return ll;
        } String[] ss = ss(); ss ss() ss long[] ll = new long[ss.length]; ll new long[ss.length] ss.length ss ss.length for(int j = 0; j < ss.length; j++) ll[j] = Long.parseLong(ss[j]); int j = 0; int j = 0; j 0 j < ss.length j ss.length ss ss.length j++ j++ j ll[j] = Long.parseLong(ss[j]); ll[j] = Long.parseLong(ss[j]) ll[j] ll j Long.parseLong(ss[j]) Long.parseLong Long ss[j] ss j return ll; ll BufferedReader public class Main{
    static MyReader in = new MyReader();

    public static void main(String[] args){
        int[][] d = {{0, 0, 0, 0, 0, 0},
                    {2, 0, 9, 0, 0, 0},
                    {0, 3, 0, 0, 0, 0},
                    {0, 0, 4, 0, 0, 0},
                    {0, 0, 0, 5, 0, 0},
                    {0, 0, 0, 0, 6, 0},
                    {2, 0, 7, 0, 0, 0},
                    {0, 8, 0, 0, 0, 0},
                    {2, 0, 9, 11, 0, 0},
                    {0, 10, 0, 0, 0, 0},
                    {0, 0, 0, 11, 0, 0},
                    {0, 0, 0, 0, 0, 12},
                    {0, 0, 13, 0, 0, 0},
                    {2, 1, 9, 0, 0, 0}};
        int s = 1;
        String S = in.s();
        final int N = S.length();

        for(int i = 0; i < N; i++){
            char c = S.charAt(i);
            int x = c == 'd' ? 0 :
                    c == 'r' ? 1 :
                    c == 'e' ? 2 :
                    c == 'a' ? 3 :
                    c == 'm' ? 4 :
                    c == 's' ? 5 : 6;
            if(x == 6 || (s = d[s][x]) == 0) {
                out.println("NO");
                return;
            }
        }

        out.println((s-1)*(s-6)*(s-8)*(s-13) == 0 ? "YES" : "NO");
    }

    static class MyReader extends BufferedReader{
        MyReader(){
            super(new InputStreamReader(System.in));
        }

        String s(){
            try{return readLine();}catch(IOException e){return "";}
        }

        String[] ss(){
            return s().split(" ");
        }

        int i(){
            return Integer.parseInt(s());
        }

        int[] ii(){
            String[] ss = ss();
            int[] ii = new int[ss.length];
            for(int j = 0; j < ss.length; j++) ii[j] = Integer.parseInt(ss[j]);
            return ii;
        }

        ArrayList<Integer> li(){
            String[] ss = ss();
            ArrayList<Integer> li = new ArrayList<>();
            for(int j = 0; j < ss.length; j++) li.add(Integer.parseInt(ss[j]));
            return li;
        }

        long l(){
            return Long.parseLong(s());
        }

        long[] ll(){
            String[] ss = ss();
            long[] ll = new long[ss.length];
            for(int j = 0; j < ss.length; j++) ll[j] = Long.parseLong(ss[j]);
            return ll;
        }
    }
} public class Main{
    static MyReader in = new MyReader();

    public static void main(String[] args){
        int[][] d = {{0, 0, 0, 0, 0, 0},
                    {2, 0, 9, 0, 0, 0},
                    {0, 3, 0, 0, 0, 0},
                    {0, 0, 4, 0, 0, 0},
                    {0, 0, 0, 5, 0, 0},
                    {0, 0, 0, 0, 6, 0},
                    {2, 0, 7, 0, 0, 0},
                    {0, 8, 0, 0, 0, 0},
                    {2, 0, 9, 11, 0, 0},
                    {0, 10, 0, 0, 0, 0},
                    {0, 0, 0, 11, 0, 0},
                    {0, 0, 0, 0, 0, 12},
                    {0, 0, 13, 0, 0, 0},
                    {2, 1, 9, 0, 0, 0}};
        int s = 1;
        String S = in.s();
        final int N = S.length();

        for(int i = 0; i < N; i++){
            char c = S.charAt(i);
            int x = c == 'd' ? 0 :
                    c == 'r' ? 1 :
                    c == 'e' ? 2 :
                    c == 'a' ? 3 :
                    c == 'm' ? 4 :
                    c == 's' ? 5 : 6;
            if(x == 6 || (s = d[s][x]) == 0) {
                out.println("NO");
                return;
            }
        }

        out.println((s-1)*(s-6)*(s-8)*(s-13) == 0 ? "YES" : "NO");
    }

    static class MyReader extends BufferedReader{
        MyReader(){
            super(new InputStreamReader(System.in));
        }

        String s(){
            try{return readLine();}catch(IOException e){return "";}
        }

        String[] ss(){
            return s().split(" ");
        }

        int i(){
            return Integer.parseInt(s());
        }

        int[] ii(){
            String[] ss = ss();
            int[] ii = new int[ss.length];
            for(int j = 0; j < ss.length; j++) ii[j] = Integer.parseInt(ss[j]);
            return ii;
        }

        ArrayList<Integer> li(){
            String[] ss = ss();
            ArrayList<Integer> li = new ArrayList<>();
            for(int j = 0; j < ss.length; j++) li.add(Integer.parseInt(ss[j]));
            return li;
        }

        long l(){
            return Long.parseLong(s());
        }

        long[] ll(){
            String[] ss = ss();
            long[] ll = new long[ss.length];
            for(int j = 0; j < ss.length; j++) ll[j] = Long.parseLong(ss[j]);
            return ll;
        }
    }
} Main
import java.io.*;
import java.util.*;
import static java.lang.System.out;

public class Main{
    static MyReader in = new MyReader();

    public static void main(String[] args){
        int[][] d = {{0, 0, 0, 0, 0, 0},
                    {2, 0, 9, 0, 0, 0},
                    {0, 3, 0, 0, 0, 0},
                    {0, 0, 4, 0, 0, 0},
                    {0, 0, 0, 5, 0, 0},
                    {0, 0, 0, 0, 6, 0},
                    {2, 0, 7, 0, 0, 0},
                    {0, 8, 0, 0, 0, 0},
                    {2, 0, 9, 11, 0, 0},
                    {0, 10, 0, 0, 0, 0},
                    {0, 0, 0, 11, 0, 0},
                    {0, 0, 0, 0, 0, 12},
                    {0, 0, 13, 0, 0, 0},
                    {2, 1, 9, 0, 0, 0}};
        int s = 1;
        String S = in.s();
        final int N = S.length();

        for(int i = 0; i < N; i++){
            char c = S.charAt(i);
            int x = c == 'd' ? 0 :
                    c == 'r' ? 1 :
                    c == 'e' ? 2 :
                    c == 'a' ? 3 :
                    c == 'm' ? 4 :
                    c == 's' ? 5 : 6;
            if(x == 6 || (s = d[s][x]) == 0) {
                out.println("NO");
                return;
            }
        }

        out.println((s-1)*(s-6)*(s-8)*(s-13) == 0 ? "YES" : "NO");
    }

    static class MyReader extends BufferedReader{
        MyReader(){
            super(new InputStreamReader(System.in));
        }

        String s(){
            try{return readLine();}catch(IOException e){return "";}
        }

        String[] ss(){
            return s().split(" ");
        }

        int i(){
            return Integer.parseInt(s());
        }

        int[] ii(){
            String[] ss = ss();
            int[] ii = new int[ss.length];
            for(int j = 0; j < ss.length; j++) ii[j] = Integer.parseInt(ss[j]);
            return ii;
        }

        ArrayList<Integer> li(){
            String[] ss = ss();
            ArrayList<Integer> li = new ArrayList<>();
            for(int j = 0; j < ss.length; j++) li.add(Integer.parseInt(ss[j]));
            return li;
        }

        long l(){
            return Long.parseLong(s());
        }

        long[] ll(){
            String[] ss = ss();
            long[] ll = new long[ss.length];
            for(int j = 0; j < ss.length; j++) ll[j] = Long.parseLong(ss[j]);
            return ll;
        }
    }
}
