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: Runtime Error

Solution code:
import re
S = input()
a = []
num = []
l = ["dream","dreamer","erase","eraser"]
re.split("\d+",S)
if ("dream" in S)   == True:
	num.append(S.count("dream"))
	a.append(S.find("dream"))

if ("dreamer" in S) == True:
	num.append(S.count("dreamer"))
	a.append(S.find("dreamer"))
	
if ("erase" in S)   == True:
	num.append(S.count("erase"))
	a.append(S.find("erase"))

if ("eraser" in S)  == True:
	num.append(S.count("eraser"))
	a.append(S.find("eraser"))
"""
print(num[0])
print(num[1])
print(num[2])
print(a[0])
print(a[1])
print(a[2])
print(a[3])
"""
if (num[0] or num[1] or num[2] or num[3])> 0:
	print("YES")
elif (num[0] or num[1] or num[2] or num[3]) <= 0:
	print("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = str(input())
for i in {"a", "i", "u", "e", "o"}:
    if a == i:
        flag = 1
        print("vowel")
if flag == 0:
    print("consonant")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input(); if s in "aiueo" print("vowel") else print("consonant")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
c = input()
if v,c in 'aeiou':
  print(vowel)
else:
  print(consonant)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include<iostream>
#include<vector>
#include<algorithm>
#include<string>

using namespace std;

int main() {
	char c;
	cin >> c;
	if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
		cout << "vowel" << endl;
	}else{
		cout << "consonant" << endl;
	}

	return 0;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
v = {a, e, i, o, u}
if input() in v:
  print("vowel")
else:
  print("consonant")

Submission status: Runtime Error

Solution code:
S = input()

sys.setrecursionlimit(10**7) 

def is_ok(s):
    if len(s)==0:
        return 'YES'
    elif len(s)<5:
        return 'NO'
    elif s[-7:]=='dreamer':
        next_s = s[:-7]
    elif s[-6:]=='eraser':
        next_s = s[:-6]
    elif s[-5:]=='dream' or s[-5:]=='erase':
        next_s = s[:-5]
    else:
        return 'NO'
    # import pdb;pdb.set_trace()
    ans = is_ok(next_s)
    return ans

print(is_ok(S))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N,K,L = map(int, input().split())
D = [list(map(int, input().split())) for _ in range(K)]
T = [list(map(int, input().split())) for _ in range(L)]

#print(N,K,L,D,T)

list_D = [set([i]) for i in range(N)]
list_T = [set([i]) for i in range(N)]
root_D = [i for i in range(N)]
root_T = [i for i in range(N)]

#print(list_D)

for d in D:
    d0 = d[0] - 1
    d1 = d[1] - 1
    r0 = root_D[d0]
    r1 = root_D[d1]
    a = list_D[r0]
    b = list_D[r1]
    c = a | b
    list_D[r0] = c
    root_D[r1] = r0
    root_D[d1] = r0
    #print(list_D, root_D)

for t in T:
    t0 = t[0] - 1
    t1 = t[1] - 1
    r0 = root_T[t0]
    r1 = root_T[t1]
    a = list_T[r0]
    b = list_T[r1]
    c = a | b
    list_T[r0] = c
    root_T[r1] = r0
    root_T[t1] = r0
    #print(list_T, root_T)

#和集合
res = [0] * N
for i in range(N):
    rd = root_D[i]
    rt = root_T[i]
    d = list_D[rd]
    t = list_T[rt]
    res[i] = len(d & t)
#print(*(res[i] for i in range(N)))
print(" ".join([str(i) for i in res]))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
c = str(input())
if c in {a,i,u,e,o}:
    print("vowel")
else:
    print("consonant")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
c = str(input())
if c == "a" or c == "i" or c == "u" or c == "e" or c == "o"

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import itertools
import sys
import itertools
import operator
import collections

from inspect import currentframe

u'''Return all length combination'''
def all_comb(iterable):
    for i in range(0, len(iterable) + 1):
        comb = itertools.combinations(iterable, i)
        for pair in comb:
            yield(pair)


class UnionFind:
    def __init__(self, elems=None):
        class KeyDict(dict):
            def __missing__(self, key):
                self[key] = key
                return key

        self.parent = KeyDict()
        self.rank = collections.defaultdict(int)

        if elems is not None:
            for elem in elems:
                _, _ = self.parent[elem], self.rank[elem]

    def find(self, x):
        if self.parent[x] == x:
            return x
        else:
            self.parent[x] = self.find(self.parent[x])
            return self.parent[x]

    def unite(self, x, y):
        x = self.find(x)
        y = self.find(y)
        if self.rank[x] < self.rank[y]:
            self.parent[x] = y
        else:
            self.parent[y] = x
        if self.rank[x] == self.rank[y]:
            self.rank[x] += 1

    def are_same(self, x, y):
        return self.find(x) == self.find(y)

    def grouper(self):
        roots = [(x, self.find(x_par)) for x, x_par in self.parent.items()]
        root = operator.itemgetter(1)
        for _, group in itertools.groupby(sorted(roots, key=root), root):
            yield [x for x, _ in group]

N, K, L = map(int, input().split())
load_connections = UnionFind(range(1, N + 1))
rail_connections = UnionFind(range(1, N + 1))

for i in range(K):
    (p, q) = map(int, input().split())
    load_connections.unite(p, q)

for i in range(L):
    (r, s) = map(int, input().split())
    rail_connections.unite(r, s)

for i in range(1, N + 1):
    print([load_connections.are_same(i, j) and rail_connections.are_same(i, j) for j in range(1, N + 1)].count(True))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print("vowel" if input() in 'a','e','i','o','u' else ""consonant)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()
a = {a,e,u,i,o}
if s in a:
  print("vowel")
else:
  print("consonant")

Submission status: Runtime Error

Solution code:
グリコ森永事件【完全永久保存版】

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#coding:utf-8
n=[a,i,u,e,o]
c=input()
if(c in n):
  print("vowel")
else:
  print("consonant")

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())
px = []
ans = []
for x in range(H):
    px.append(input())
    ans.append(px[x])
    ans.append(px[x])

for x in range(len(ans)):
    print(ans[x])

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())
px = []
ans = []
for x in range(H):
    px.append(input())
    ans.append(px[x])
    ans.append(px[x])

for x in range(ans):
    print(ans[x])

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())
px = []
ans = []
for x in range(H):
    px.append(W[x])
    px.append(W[x])

for x in range(px):
    print(px[x])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
rint('vowel') if input() in 'aeiouAEIOU' else print('consonant')

Submission status: Runtime Error

Solution code:
H, W = list(map(int, input().split()))
for i in range(H):
    C = input()
    print(C)
    print(C)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import re
x = input()
vowels = 'aiueo'
index = vowels.search(x)
if index != -1:
    print("vowel")
else:
    print("consonant")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(ord(input()) in "aiueo" and "vowel" or "consonant")

Submission status: Runtime Error

Solution code:
n = input()
                                                                                                            def slv():
    a = ['a', 'e', 'i', 'o', 'u']
                                                                                                                for i in a:
        if i == n:
            print('vowel')
            return
    print('consonant')
                                                                                                            slv()

Submission status: Runtime Error

Solution code:
import sys
from collections import deque, Counter

def debug(x, table):
    for name, val in table.items():
        if x is val:
            print('DEBUG:{} -> {}'.format(name, val), file=sys.stderr)
            return None

def solve():
    N, K, L = map(int, input().split())
    Adj_r = [[] for i in range(N)]
    Adj_t = [[] for i in range(N)]

    for i in range(K):
        p, q = map(int, input().split())
        p, q = p-1, q-1
        Adj_r[p].append(q)
        Adj_r[q].append(p)

    for i in range(L):
        r, s = map(int, input().split())
        r, s = r-1, s-1
        Adj_t[r].append(s)
        Adj_t[s].append(r)

    col = 0
    cols_r = [None] * N
    cols_t = [None] * N

    for u in range(N):
        if cols_r[u] is None:
            bfs_color(N, Adj_r, cols_r, u, col)
            col += 1
        if cols_t[u] is None:
            bfs_color(N, Adj_t, cols_t, u, col)
            col += 1

    # debug(cols_r, locals())
    # debug(cols_t, locals())

    cnt = Counter((cols_r[u], cols_t[u]) for u in range(N))

    ans = [cnt[cols_r[u], cols_t[u]] for u in range(N)]

    print(*ans)


def bfs_color(N, Adj, v_cols, u, col):
    v_cols[u] = col
    nxts = deque([u])

    while nxts:
        v = nxts.popleft()

        for w in Adj[v]:
            if v_cols[w] is None:
                v_cols[w] = col
                nxts.append(w)


if __name__ == '__main__':
    solve()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
H,W = map(int,input().split())

#output = np.ndarray((2*H,W))
output = list()

for i in range(0,H):
    #output[i] = input()
    strings = input()
    print(strings)
    print(strings)

Submission status: Runtime Error

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

vowel_list = ['a','i','u','e','o']
output_string = ['vowel','consonant']

flag = False
for vowel in vowel_list:
    if vowel == s:
        flag = True

print(output_string[0] if flag == True else output_string[1])

Submission status: Runtime Error

Solution code:
word = input().split()

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

Submission status: Runtime Error

Solution code:
import numpy as np
import pandas as pd


def main():
    print('vowel' if input() in 'aeiou' else 'consonant')

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
input = raw_input()
if input not in a:
    print("consonant")
else:
    print("vowel")

Submission status: Runtime Error

Solution code:
h,w = map(int,input().split())
for i in range(h):
    str = input()+"\n"
    print(str*2)

Submission status: Runtime Error

Solution code:
print"vowel"*(c in"aiueo")or"consonant"

Submission status: Runtime Error

Solution code:
import sys

c = sys.argv[1]
vowel = ("a", "i", "u", "e", "o")

if c in vowel:
        print "vowel"
else:
        print "consonant"

Submission status: Runtime Error

Solution code:
s = raw_input()
if s in "aiueo":
    print ('vowel')

else:
    print ('consonant')

Submission status: Runtime Error

Solution code:
s = raw_input()
if s in "aiueo":
    print "vowell"
else:
    print "consonant"

Submission status: Runtime Error

Solution code:
s = raw_input()
if s in "aiueo":
    print "vowel"
else:
    print "consonant"

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#001
vowel = ['a','e','u','i','o']

x=raw_input()

if x in vowel:
    print("vowel")
else:
    print("consonant")

Submission status: Runtime Error

Solution code:
#001
vowel = "aeuio"
x=str(raw_input())
if x in vowel:
    print("vowel")
else:
    print("consonant")

Submission status: Runtime Error

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

if n in a:
    print('vowel')
else:
    print('consonant')

Submission status: Runtime Error

Solution code:
a=["eraser","erase","dreamer","dream"]
s=input()
for i in range(4):
    s=s.replace(a[i],"")
if s="":
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
a = raw_input()
a.split(' ')
for i in range(a[0]):
    a = raw_input()
    print a
    print a

Submission status: Runtime Error

Solution code:
while 1:
    a = raw_input()
    if a == '':
        break
    if a == 'a' or a=='i' or a=='u' or a=='e' or a=='o':
        print 'vowel'
    else:
        print 'consonant'

Submission status: Runtime Error

Solution code:
import sys
H,_=map(int,raw_input().split())
for _ in range(0,H):
    line=sys.stdin.readline()
    print line
    print line

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while True:
    n = raw_input()
    if n in ['a','e','i','o','u']:
        print 'vowel'
    else:
        print 'consonant'

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
i = input()

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