output_description: If c is a vowel, print `vowel`. Otherwise, print `consonant`.
  
  * * *
input_description: The input is given from Standard Input in the following format:
  
      
      
      c
attempt: ef rev (s):
      _re=''.join(list(reversed(s)))
      return _re
  
  name = ['dream','dreamer','eraser','erase']
  S = input()
  S_re = rev(S)
  can = False
  can2 = False
  for i in range(len(S_re)):
      for div in name:
          if S_re[i:i+len(div)]==rev(div) :
              i+=len(div)
              can = True
          if can :
              can2 = True
              break
      if not can2 :
          break
  if can2 :
      print('YES')
  else :
      print('No')
  
problem_description: Statement
  
  Given a lowercase English letter c, determine whether it is a vowel. Here,
  there are five vowels in the English alphabet: `a`, `e`, `i`, `o` and `u`.
samples: [{"input": "a", "output": "vowel\n    \n\nSince `a` is a vowel, print `vowel`.\n\n* * *"}, {"input": "z", "output": "consonant\n    \n\n* * *"}, {"input": "s", "output": "consonant"}]