Problem:


Score : 100 points

Problem 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.

Constraints

c is a lowercase English letter.

Input

The input is given from Standard Input in the following format:

c

Output

If c is a vowel, print vowel. Otherwise, print consonant.

Sample Input 1

a

Sample Output 1

vowel

Since a is a vowel, print vowel.

Sample Input 2

z

Sample Output 2

consonant

Sample Input 3

s

Sample Output 3

consonant



Sample input:
a


Sample output:
vowel

Submission status: Wrong Answer

Solution code:
s = input()
s = s[::-1]
t_list = ['dream', 'dreamer', 'erase', 'eraser']
t_list = [i[::-1] for i in t_list]
i = 0

res = True
while i < len(s):
    can = False
    for j in range(4):
        if s[i:len(t_list[j])] == t_list[j]:
            i+=len(t_list[j])
            can = True
    if can == False: # うまくいっても最後には`can=False`になる
        res = False
        break

if res == True:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
s = input()
s = s[::-1]
t_list = ['dream', 'dreamer', 'erase', 'eraser']
t_list = [i[::-1] for i in t_list]
i = 0

while i < len(s):
    can = False
    for j in range(4):
        if s[i:len(t_list[j])] == t_list[j]:
            i+=len(t_list[j])
            can = True
    if can == False:
        break
        
if can == True:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
s = input()
s = s[::-1]
t_list = ['dream', 'dreamer', 'erase', 'eraser']
t_list = [i[::-1] for i in t_list]
i = 0

while i <= len(s)+1:
    can = False
    for j in range(4):
        if s[i:len(t_list[j])] == t_list[j]:
            i+=len(t_list[j])
            can = True
    if can == False:
        break

if can == True:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
s=input()
l=["a","i","u","e","o"]
if s is not l:
  print("consonant")
else:
  print("vowel")

Submission status: Wrong Answer

Solution code:
c = input()
if c == 'a' or c == 'i' or c == 'u' or c == 'd' or c == 'e':
  print('vowel')
else:
  print('consonant')

Submission status: Wrong Answer

Solution code:
s = input().replace('eraser','1').replace('erase','1').replace('dreamer','1').replace('dream','1')
if len(s.replace('1','')) == 0:
    print("YES")
else :
    print("NO")

Submission status: Wrong Answer

Solution code:
s = input().replace('dreamer','1').replace('dream','1').replace('eraser','1').replace('erase','1')
if len(s.replace('1','')) == 0:
    print("YES")
else :
    print("NO")

Submission status: Wrong Answer

Solution code:
c = input()

print("voewl" if c in ["a", "i", "u", "e", "o"] else "consonant")

Submission status: Wrong Answer

Solution code:
c = input()

print("voewl" if c in ["a", "b", "c", "d", "e"] else "consonant")

Submission status: Wrong Answer

Solution code:
line=str(input())
fine=line[::-1]
for i in range(250):
    if fine[0:5]=='esare':
        fine=fine.lstrip('esare')
    elif fine[0:7]=="remaerd":
        fine=fine.lstrip('remaerd')
    elif fine[0:6]=='resare':
        fine=fine.lstrip('resare')
    elif fine[0:5]=="maerd":
        fine=fine.lstrip("maerd")
    else:
        break
    
if len(fine)==0:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
c = si()
b = ('a','i','u','e','o')

if c in b:
    print('vowel')
else:
    print('consonan')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

#整数の入力
S = input()

#置換
S1 = S.replace("eraser", "")
S2 = S1.replace("erase", "")
S3 = S2.replace("dreamer", "")
S4 = S3.replace("dream", "")

if len(S4) >= 1:
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
n=input()

for i in ["a","i","u","e","o"]:
  if i in n:
    print("vowel")
  else:
    print("consonant")

Submission status: Wrong Answer

Solution code:
print("vowel" if input() in "auiou" else "consonant")

Submission status: Wrong Answer

Solution code:
S = input()
S = S[::-1]

T = ['dream'[::-1],'dreamer'[::-1],'erase'[::-1],'eraser'[::-1]]
size = 0


while size < len(S):
	if S[size:size+5] == T[0] or S[size:size+5] == T[2]:
		size += 5
	elif S[size:size+6] == T[3]:
		size += 6
	elif S[size:size+7] == T[1]:
		size += 7
	else :
		print('No')
		exit()
print('Yes')

Submission status: Wrong Answer

Solution code:
c=len(input())
if c=="a" or c=="i" or c=="u" or c=="e" or c=="o":
  print("vowel")
else:
  print("consonant")

Submission status: Wrong Answer

Solution code:
c=len(input())
"a","i","u","e","o"
if c=="a" or "i" or "u" or "e" or "o":
  print("vowel")
else:
  print("consonant")

Submission status: Wrong Answer

Solution code:
def check(s):
    s = s.replace('dreamer', '')
    s = s.replace('dream', '')
    s = s.replace('eraser', '')
    s = s.replace('erase', '')
    if len(s) != 0:
        return 'NO'
    return 'YES'


s = input()
print(check(s))

Submission status: Wrong Answer

Solution code:
def check(s):
    s = s.replace('dreamer', '')
    s = s.replace('dream', '')
    s = s.replace('eraser', '')
    s = s.replace('erase', '')
    if len(s) == 0:
        return 'NO'
    return 'YES'


s = input()
print(check(s))

Submission status: Wrong Answer

Solution code:
def check(s):
    words = [
            'dreamer',
            'dream',
            'eraser',
            'erase',
            ]

    for w in words:
        if len(s) > len(w) and s[-len(w):] == w:
            return s[:len(w)], True
        if len(s) == len(w) and s == w:
            return '', True
    return '', False


s = input()
if len(s) == 0:
    print('YES')
    exit()
while True:
    s, ok = check(s)
    if not ok:
        print('NO')
        exit()
    if len(s) == 0:
        print('YES')
        exit()

Submission status: Wrong Answer

Solution code:
V = ['a','i','u','e','o']
ans = 'constant'
if input() in V:
    ans = 'vowel'
print(ans)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# 文字列反転
def 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 len(S_re[i:]) >= len(div):
            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 and i==len(S_re)-1:
    print('YES')
else :
    print('NO')

Submission status: Wrong Answer

Solution code:
def 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 len(S_re[i:]) >= len(div):
            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')

Submission status: Wrong Answer

Solution code:
c = input()
boin = ['a','b','c','d','e']

if c in boin:
  print('vowel')
else:
  print('consonant')

Submission status: Wrong Answer

Solution code:
def 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 len(S_re[i:]) >= len(div):
            if S_re[i:i+len(div)]==rev(div) :
                print(S_re[i:i+len(div)])
                i+=len(div)
                can = True
        if can :
            can2 = True
            break
    if not can2 :
        break
if can2 and i==len(S_re)-1:
    print('YES')
else :
    print('No')

Submission status: Wrong Answer

Solution code:
c=input()

print("vowel" if c in ('aiueo') else "consoneant")

Submission status: Wrong Answer

Solution code:
#048
letter=str(input())
if letter == ('a' or 'i' or "u" or "e" or "o"):
    print("vowel")
else:
    print("consonant")

Submission status: Wrong Answer

Solution code:
#048
c=str(input())
if c=="a" or "i" or "u" or "e" or "o":
    print("vowel")
else:
    print("consonant")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

c = input()

if c == "a":
    print("vowel")
elif c == "b":
    print("vowel")
elif c == "c":
    print("vowel")
elif c == "d":
    print("vowel")
elif c == "e":
    print("vowel")
else:
    print("consonant")

Submission status: Wrong Answer

Solution code:
dreamer = "dreamer"
eraser = "eraser"
dream = "dream"
erase = "erase"


def main():
    S = input()

    while len(S):
        lens = len(S)
        if S[-len(dreamer) :] == dreamer:
            S = S[: -len(dreamer)]
        if S[-len(eraser) :] == eraser:
            S = S[: -len(eraser)]
        if S[-len(dream) :] == dream:
            S = S[: -len(dream)]
        if S[-len(erase) :] == erase:
            S = S[: -len(erase)]
        if lens == len(S):
            print("NO")
            return
    print("YES")
    return


main()

Submission status: Wrong Answer

Solution code:
s = input()
while len(s) >= 4:
  s.replace("eraser", "")
  s.replace("erase", "")
  s.replace("dreamer", "")
  s.replace("dream", "")
  if len(s) == 0:
    print('YES')
    exit()
print('NO')

Submission status: Wrong Answer

Solution code:
s=input()
vowel=["a","b","c","d","e"]
if s in vowel:
  print("vowel")
else:
  print("consonant")

Submission status: Wrong Answer

Solution code:
S = input()
reversed_S = ''.join(list(reversed(S)))  #Sを反転した文字列

divide = ['dream', 'dreamer', 'erase', 'eraser']

# divideの各要素も反転
for i in range(len(divide)):
    divide[i] = ''.join(list(reversed(divide[i])))

# 全体が分けきれるか
can = 1

i = 0

while i < len(S):
    can2 = 0
    for j in range(len(divide)):
        if reversed_S[i:i + len(divide[j])] == divide[j]:
            can2 = 1
            i += len(divide[j])

    if can2 == 0:
        can = 0
        break

if can == 1:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
x = input()
print('vowel' if x=='a' and x=='e' and x=='i' and x=='o' and x=='u' else'consonant')

Submission status: Wrong Answer

Solution code:
c=input()
list=['a','i','u','e','o']
if c in list:
  print('vowel')
else:
  ('consonant')

Submission status: Wrong Answer

Solution code:
c=input();list=['a','e','i','o','u']
if c == list:
  print('vowel')
elif c == 'a' or 'e' or 'i' or 'o' or 'u':
  print('vowel')
else:
  print('consonant')

Submission status: Wrong Answer

Solution code:
c=input();list=['a','e','i','o','u']
if c == list:
  print('vowel')
else:
  print('consonant')

Submission status: Wrong Answer

Solution code:
c=input()
if c == 'a' or 'e' or 'i' or 'o' or 'u':
  print('vowel')
  
else:
  print('consonant')

Submission status: Wrong Answer

Solution code:
c = input()
v = {"a","b","c","d","e"}
if c in v:
    print("vowel")
else:
    print("consonant")

Submission status: Wrong Answer

Solution code:
def main():
  vovels = ['a', 'e', 'i', 'o', 'u']
  c = raw_input()
  result = 'vovel' if c in vovels else 'consonant'
  print(result)

main()

Submission status: Wrong Answer

Solution code:
c = input()
vowel=['a','e','i','o','u']
if c in vowel:
    print('vowel')
else:
    print('consonent')

Submission status: Wrong Answer

Solution code:
s = input()

if s == "a" or "i" or "u" or "e" or "o":
  print("vowel")
else:
  print("consonant")

Submission status: Wrong Answer

Solution code:
c=input()
if c=='a' or 'i' or 'u' or 'e' or 'o':
  print('vowel')
else:
  print('consonant')

Submission status: Wrong Answer

Solution code:
s=input()
s=s.replace('dreamer','').replace('dream','').replace('eraser','').replace('erase','')
if s:print('NO')
else:print('YES')

Submission status: Wrong Answer

Solution code:
s=input()
if s in list("abcde"):
    print('vowel')
else:
    print('consonant')

Submission status: Wrong Answer

Solution code:
print('vowel' if input() in ['aeiou'] else 'consonant')

Submission status: Wrong Answer

Solution code:
input_ = input()

if input_ in "aiueo":
  print("vowel")
else:
  print("constant")

Submission status: Wrong Answer

Solution code:
c = input()
v = ['a', 'b', 'c', 'd', 'e']

if c in v:
    print('vowel')
else:
    print('consonant')

Submission status: Wrong Answer

Solution code:
c = input()
if c == "a" or "i" or "u" or "e" or "o":
  print("vowel")
else:
  print("consonant")

Submission status: Wrong Answer

Solution code:
c = input()
if c == "aeiou":
  print("vowel")
else:
  print("consonant")

Submission status: Wrong Answer

Solution code:
if input() in  ("a","b","c","","e"):
    print("vowel")
else:
    print("consonant")

Submission status: Wrong Answer

Solution code:
s = input().replace("dream","").replace("dreamer","").replace("erase","").replace("eraser","")
if s:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
c = input()
if ('a' or 'i' or 'u' or 'e' or 'o') in c:
    print('vowel')
else:
    print('consonant')

Submission status: Wrong Answer

Solution code:
vowel = ['a','i','u','e','o']
print('vowel' if input() in vowel else 'constant')

Submission status: Wrong Answer

Solution code:
vowel = "aeiou"
c = input()

if c in vowel:
  print("vowel")
else:
  print("constant")

Submission status: Wrong Answer

Solution code:
c = input()

if c == "a" or "i" or "u" or "e" or "o" :
    print("vowel")
else:
    print("consonant")

Submission status: Wrong Answer

Solution code:
c = input()

list = ['a','i','u','e','o']

if c in list:
  print('vowel')
else:
  print('conconant')

Submission status: Wrong Answer

Solution code:
S = input()

while len(S) > 0:
  if "dreameraser" in S:
    S = S.replace("dreameraser","")
  elif "dreamer" in S:
    S = S.replace("dreamer","")
  elif "dream" in S:
    S = S.replace("dream","")
  elif "eraser" in S:
    S = S.replace("eraser","")
  elif "erase" in S:
    S = S.replace("erase","")
  else:
    break
    
if len(S) == 0:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
S = input()

while len(S) > 0:
  if "dreameraser" in S:
    S = S.replace("dreameraser","")
  elif "dream" in S:
    S = S.replace("dreamer","")
  elif "dreamer" in S:
    S = S.replace("dream","")
  elif "erase" in S:
    S = S.replace("eraser","")
  elif "eraser" in S:
    S = S.replace("erase","")
  else:
    break
    
if len(S) == 0:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
st = input()

sample = ['dream', 'dreamer', 'erase', 'eraser']
sample_edit = ['dream', 'eraser','erase', 'er']
sample_er = ['er']
sample_dr = ['dream']
sample_ase = ['ase', 'aser']

ret = 'NO'
reg_len = 0
fd_word = ''
dream_flg = False
end_flg = False

while( len(st) != 0 ):
  if reg_len == len(st):
    break
  
  reg_len = len(st)
  for i in range(len(sample_edit)):
    fd = st.startswith(sample_edit[i])
    
    if fd > 0:
      
      #print(st,i,dream_flg)
      st = ''.join(st[len(sample_edit[i]):len(st)])
        
      if sample_edit[i] == 'dream':
        dream_flg = True
      elif sample_edit[i] == 'er':
        if dream_flg == False:
          end_flg = True
        else:
          dream_flg = False
      
      break
    
        
  if end_flg == True:
    break
    
  if len(st) == 0:
    ret = 'YES'
    
  #print(st)
  #print(len(st))

print( ret )

Submission status: Wrong Answer

Solution code:
c = input()
print("vowel" if c in "aeuio" else "cousonant")

Submission status: Wrong Answer

Solution code:
s = input()

words = {'dream', 'dreamer', 'erase', 'eraser'}

def is_prefix_daydream(s, prefix):
    if s == prefix:
        return True
    elif s.startswith(prefix):
        return is_daydream(s[len(prefix):])
    else:
        return False

def is_daydream(s):
    if s == '':
        return True
    else:
        return any(is_prefix_daydream(s, w) for w in words)

if is_daydream(s):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
s = input()
if s.replace("eraser"," ").replace("erase"," ").replace("dreamer"," ").replace("dream"," ").replace(" ", ""):
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
vowel=["a","i","u","e","o"]

if input() in vowel:
  print("vowel")
else:
  print("constant")

Submission status: Wrong Answer

Solution code:
s = input()
S = [s[i] for i in range(len(s))]

def flag(list_s):
    flag_yes = True
    if len(list_s)<=4:
        flag_yes=False
    else:
        flag_dreamer = False
        while len(list_s)>0 and flag_yes: #listが空でなく、まだ条件を満たしている時
            if flag_dreamer and len(list_s)>=4 and list_s[:4]==['a','s','e','r']: #dreameraser
                list_s = list_s[4:]
                flag_dreamer=False
            elif flag_dreamer and len(list_s)>=3 and list_s[:3]==['a','s','e']: #dreamerase
                list_s = list_s[3:]
                flag_dreamer=False
            elif len(list_s)>=5 and list_s[0:5]==['e','r','a','s','e']: #eraseまたはeraserなら消去して初期化
                flag_dreamer=False
                list_s = list_s[5:]
                if len(list_s)>0 and list_s[0]=='r':
                    list_s = list_s[1:]
            elif list_s == ['d', 'r', 'e', 'a', 'm']: #[dream]なら全消去
                flag_dreamer=False
                list_s = list_s[5:]
            elif len(list_s)>=6 and list_s[:6]==['d', 'r', 'e', 'a', 'm', 'd']: #dreamdream or dreamdreamerなら前半消去
                flag_dreamer=False
                list_s = list_s[5:]
            elif len(list_s)>=7 and list_s[:7]==['d', 'r', 'e', 'a', 'm', 'e', 'r']: #dreamerが面倒
                flag_dreamer=True
                list_s = list_s[7:]
            else:
                flag_yes = False
    return flag_yes
        
if flag(S):
    print('YES')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
print(("consonant","vowel")[input() in "abcde"])

Submission status: Wrong Answer

Solution code:
a="abcde"
c = input()
print("vowel" if c in a else "consonant")

Submission status: Wrong Answer

Solution code:
a="abcde"
c = input()
print("Yes" if c in a else "No")

Submission status: Wrong Answer

Solution code:
c=input()
if c=="a" and "i" and "u" and "e" and "o":
	print("vowel")
else:
	print("consonant")

Submission status: Wrong Answer

Solution code:
c=input()
if c=="a" or "i" or "u" or "e" or "o":
	print("vowel")
else:
	print("consonant")

Submission status: Wrong Answer

Solution code:
c = input()
for c in ['a', 'i', 'u', 'e', 'o']:
  print('vowel')
else:
  print('consonant')

Submission status: Wrong Answer

Solution code:
import sys

s = sys.stdin.read().strip()
words = ["dream", "dreamer", "erase", "eraser"]

stack = [0]
match = False
while not match and stack:
  i = stack.pop()
  for w in words:
    if s.startswith(w, i):
      n = i + len(w)
      if n == len(s):
        match = True
        break
      stack.append(n)
print("YES" if match else "NO")

Submission status: Wrong Answer

Solution code:
a=input();print('cvoonwseoln a n t'[('a'or'i'or'u'or'e'or'o')in a ::2])

Submission status: Wrong Answer

Solution code:
c= input()
a='abcde'
if c in a:
    print('vowel')
else:
    print('consonant')

Submission status: Wrong Answer

Solution code:
c=str(input())
b=["a","i","u","e","o"]

for i in range(5):
  if c == b[i]:
    print("vowel")
  else:
    print("consonant")

Submission status: Wrong Answer

Solution code:
c=input()
vowel=['a','i','u','e','o']
if c in vowel:
  print('vowel')
else:
  print('constant')

Submission status: Wrong Answer

Solution code:
li = ["a","b","c","d","e"]

if input() in li:
    print('vowel')
else:
    print('consonant')

Submission status: Wrong Answer

Solution code:
c = input()
li = ["a","b","c","d","e"]

if c in li:
    print('vowel')
else:
    print('consonant')

Submission status: Wrong Answer

Solution code:
c = input()
if c == "a" or "e" or "i" or "o" or "u":
  print("vowel")
else:
  print("constant")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')

#A
def A():
    a = ["a", "i", "u", "e", "o"]
    c = S()
    if c in a:
        print("vowel")
    else:
        print("consonant")
    return

#B
def B():
    return

#C
def C():
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#Solve
if __name__ == '__main__':
    A()

Submission status: Wrong Answer

Solution code:
print(['onsonant','vowelc'][input() in ['a','i','u','e','o']])

Submission status: Wrong Answer

Solution code:
a = input()
b = "abcde"

if b.count(a) == 1:
  print("vowel")
else:
  print("consonant")

Submission status: Wrong Answer

Solution code:
n=input()
if n=="a" or n=="b" or n=="c" or n=="d" or n=="e":
 print("vowel")
else:
 print("consonant")

Submission status: Wrong Answer

Solution code:
list = ["a","i","u","e","o"]
c =input()
if c in list==True:
    print("vowel")
else:
    print("consonant")

Submission status: Wrong Answer

Solution code:
list = ["a","b","c","d","e"]
c =input()
if c in list==True:
    print("vowel")
else:
    print("consonant")

Submission status: Wrong Answer

Solution code:
#ABC49-C
S=input()
divide=["dream","dreamer","erase","eraser"]
for i in range(4): #４つの文字群を反転
    divide[i]=divide[i][::-1]
len_s=len(S)
S=S[::-1]

check=0
i=0
a=[]
while check==0:
    if i==len_s: #ぴったり終わりの時
        a.append(1)
        break
    if len_s-i <5: #残りが５文字未満のとき、これ以上見つけられない。
        check=1
        a.append(2)
        break
    if S[i:i+5] == divide[0]:
        i=i+5
        a.append(3)
        continue
    if S[i:i+5] == divide[2]:
        i=i+5
        a.append(4)
        continue
    if len_s-i <7: #残りが７文字未満のとき、これ以上見つけられない。
        check=1
        a.append(5)
        break
    if S[i:i+7] == divide[1]:
        i=i+7
        a.append(6)
        continue
    if S[i:i+7] == divide[3]:
        i=i+7
        a.append(7)
        continue


if check==0:
    print("YES")
else:
    print("NO")
#print(a)

Submission status: Wrong Answer

Solution code:
S=input()
i=0
while i<=len(S):
    if i==len(S):
        print("YES")
        exit()

    if S[i:i+11] == "dreameraser":
        i+=11
        continue
    elif S[i:i+10] == "dreamerase":
        i+=10
        continue
    elif S[i:i+7] == "dreamer":
        i+=7
        continue
    elif S[i:i+6] == "eraser":
        i+=6
        continue
    elif S[i:i+5] in ["dream","erase"]:
        i+=5
        continue
    else:
        print("NO")
        exit()

Submission status: Wrong Answer

Solution code:
s=input()
if(s== 'a' or  'e' or 'i' or'o' or 'u'):
    print('vowel')
else:
    print('consonant')

Submission status: Wrong Answer

Solution code:
s = raw_input()
if s == "a":
    print "vowel"
elif s == "e":
    print "vowel"
elif s == "i":
    print "vowel"
elif s == "0":
    print "vowel"
elif s == "u":
    print "vowel"
else:
    print "consonant"

Submission status: Wrong Answer

Solution code:
# encoding:utf-8
import copy
import random
import bisect #bisect_left　これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys

mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000

c = str(input())
mother = list("abcde")

if c in mother:
    print("vowel")
else:
    print("consonant")

Submission status: Wrong Answer

Solution code:
c=input()
if c in "aiueo":
    print("Vowel")
else:
    print("consonant")

Submission status: Wrong Answer

Solution code:
c = input()
search = 'aeiou'
if search.find(c,0,4) == -1 :
  print('consonant')
else :
  print('vowel')

Submission status: Wrong Answer

Solution code:
c = input()

if c in ["a","b","c","d","e"]:
    print("vowel")
else:
    print("consonant")

Submission status: Wrong Answer

Solution code:
c = input()

if (c == "a") or (c == "b") or (c == "c") or (c == "d") or (c == "e"):
    print("vowel")
else:
    print("consonant")

Submission status: Wrong Answer

Solution code:
c = input()
C = ['a','b','c','d','e']
if c in C:
  print('vowel')
else:
  print('consonant')

Submission status: Wrong Answer

Solution code:
print(['vowel','consonant'][not input('c') in ['a','e','i','o','u']])

Submission status: Wrong Answer

Solution code:
['vowel','consonant'][not input() in ['a','e','i','o','u']]

Submission status: Wrong Answer

Solution code:
a=input()

if a=="a" or "i" or "u" or "e" or "o":
  print("vowel")
else:
  print("consonant")

Submission status: Wrong Answer

Solution code:
moji = ["dream", "dreamer", "erase", "eraser"]

for i in range(len(moji)):
  moji[i] = moji[i][::-1]

s = input()[::-1]

for i in range(len(moji)):
  s = s.replace(moji[i], "")

if not s:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
c = input()
if c=="a" or c=="i" or c=="u" or c=="e" or c=="o":
  print("vowel")
else:
  print("consonant")

Submission status: Wrong Answer

Solution code:
c=input()
v=['a','b','c','d','e']
if c in v:
    print('vowel')
else:
    print('consonant')

Submission status: Wrong Answer

Solution code:
S=input()
n=0
#print(S)
while S[:]!=S[:n]:
    if S[n:n+8]=="dreamer" and S[n:n+9]!="dreamera":
        n+=7 #dreamer
    elif S[n:n+6]=="dream":
        n+=5 #dream
    elif S[n:n+6]=="erase" and S[n+7]!="eraser":
        n+=5 #erase
    elif S[n:n+7]=="eraser":
        n+=6 #eraser
    #elif S[:]==S[:n-1]:
        #print("YES")
        #exit()
    else:
        print("NO")
        exit()
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
S=input()
n=0
#print(S)
while S[:]!=S[:n]:
    if S[n:n+7]=="dreamer" and S[n:n+8]!="dreamera":
        n+=7 #dreamer
    elif S[n:n+5]=="dream":
        n+=5 #dream
    elif S[n:n+5]=="erase" and S[n+6]!="eraser":
        n+=5 #erase
    elif S[n:n+6]=="eraser":
        n+=6 #eraser
    #elif S[:]==S[:n-1]:
        #print("YES")
        #exit()
    else:
        print("NO")
        exit()
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
S=input()
n=0
#print(S)
while S[:]!=S[:n]:
    if S[n:n+5]=="dream" or S[n:n+8]=="dreamera":
        n+=5 #dream
    elif S[n:n+7]=="dreamer" and S[n+7]!="a":
        n+=7 #dreamer
    elif S[n:n+5]=="erase" and S[n+6]!="eraser":
        n+=5 #erase
    elif S[n:n+6]=="eraser" and S[n+6]!="a":
        n+=6 #eraser
    #elif S[:]==S[:n-1]:
        #print("YES")
        #exit()
    else:
        print("NO")
        exit()
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
c = input()
if c[0] == "c":
	print("vowel")
else:
	print("consonant")

Submission status: Wrong Answer

Solution code:
S = input()
l = ['dream', 'dreamer', 'erase', 'eraser']

s = "".join(S[-1::-1].split(l[0][-1::-1]))

for i in range(1, 4):
    s = "".join(s.split(l[i][-1::-1]))

print("YES") if s == "" else print("NO")

Submission status: Wrong Answer

Solution code:
c = input()
aaa = ['a','b','c','d','e']
print('vowel'if c in aaa else 'consonant')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# input
s = input()

while len(s) > 4:
    if s[-5:] == 'dream':
        s = s[:-5]
    elif s[-7:] == 'dreamer':
        s = s[:-7]
    elif s[-5:] == 'erase':
        s = s[:-5]
    elif s[-6:] == 'eraser':
        s = s[:-6]
    else:
        break

if len(s) > 0:
    print('NO')
else:
    print('YES')

Submission status: Wrong Answer

Solution code:
c=input()
if c == "a" or "e" or "i" or "o" or "u":
  print("vowel")
else:
  print("consonant")

Submission status: Wrong Answer

Solution code:
c = input()
ans = "vowel" if c == 'a' or 'i' or 'u' or 'e' or 'o' else "consonant"
print(ans)

Submission status: Wrong Answer

Solution code:

s = input()


s = s.replace("eraser","")
s = s.replace("erase","")
s = s.replace("dreamer","")
s = s.replace("dream","")

if len(s) == 0:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
c = input()
m = ['a','e','i','o','u']

ans = 0
for i in range(4):
  if c == m[i]:
    ans = 1
    break

if ans == 1:
  print('vowel')
else:
  print('consonant')

Submission status: Wrong Answer

Solution code:
import sys

def main():
    input = sys.stdin.readline
    c = str(input().strip())

    if c in ['a', 'e', 'i', 'o', 'i']:
        return 'vowel'
    else:
        return 'consonant'


if __name__ == '__main__':
    print(main())

Submission status: Wrong Answer

Solution code:
from sys import stdin

p = stdin.readline().rstrip()
if p == 'a' or 'e' or 'i' or 'o' or 'u':
  print('vowel')
else:
  print('consonant')

Submission status: Wrong Answer

Solution code:
# -*- coding utf-8 -*-

s= str(input())
if s == "a" or "i" or "u" or "e" or "o":
    print("vowel")
else:
    print("consonant")

Submission status: Wrong Answer

Solution code:
c = input()
print('voewl' if c in ['a', 'i', 'u', 'e', 'o'] else 'consonant')

Submission status: Wrong Answer

Solution code:
inp = input()
list = ['a', 'i', 'u', 'e', 'o']
for i in list:
    if inp == i:
        print('vowel')
        break
    else:
        print('consonant')
        break

Submission status: Wrong Answer

Solution code:
inp = input()
list = ['a', 'i', 'u', 'e', 'o']
for i in list:
    if inp == i:
        print('vowel')
        break
    else:
        print('cosonant')
        break

Submission status: Wrong Answer

Solution code:
c=['a','b','c','d','e']
s=input()
print('vowel' if (s in c) else 'consonant')

Submission status: Wrong Answer

Solution code:
c = input()
for v in ['aiueo']:
  if c==v:
    print("vowel")
    break
else:
  print("consonant")

Submission status: Wrong Answer

Solution code:
c=input()
if c=="a"or"i"or"u"or"e"or"o":
  print("vowel")
else:
  print("consonant")

Submission status: Wrong Answer

Solution code:
c=input()
print("vowel" if ["a","e","i","u","o",c].index(c)==5 else "consonant")

Submission status: Wrong Answer

Solution code:
s = input()[::-1]
flag = 1
i = 0
while i < len(s):
    if s[i:i+5] == "maerd" or s[i:i+5] == "esare":
        i += 5
    elif s[i:i+6] == "resare":
        i += 6
    elif s[i:i+7] == "remaerd":
        i += 7
    else:
        flag = 0
        break

print("YES" if flag else "NO")

Submission status: Wrong Answer

Solution code:
st=input()
j="0"
u="0"
for i in st:
    if i=="d" and u=="0":
        u="d"
        j="1"
    elif i=="r" and u=="d":
        u="r1"
    elif i=="e" and u=="r1":
        u="e1"
    elif i=="a" and u=="e1":
        u="a1"
    elif i=="m" and u=="a1":
        u="0"
    elif i=="e" and u=="0":
        u="e2"
        j="2"
    elif i=="r" and u=="e2":
        u="0"
        
    elif i=="a" and u=="0" and j=="2":
        u="a2"
    elif i=="s" and u=="a2":
        u="s"
    elif i=="e" and u=="s":
        u="0"
        j="3"
    elif i=="r" and j=="3":
        j="0"
    else:
        print("NO")
        exit(0)
if u=="0":
    print("YES")
else:
    print("NO")