AtCoder Beginner Contest 049 - UOIAUAI

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-----
a

-----Sample Output-----
vowel

Since a is a vowel, print vowel.

Difficulty: EASY

Starter code:

Solutions:
print(['vowel', 'consonant'][len(input().strip('aeiou'))])


c = str(input())
vowels = ['a', 'e', 'i', 'o', 'u']
if c in vowels:
	answer = 'vowel'
else:
	answer = 'consonant'
print(answer)


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


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


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


print('vowel' if set(input()) <= {'a', 'i', 'u', 'e', 'o'} else 'consonant')


print('vowel') if input() in 'aiueo' else print('consonant')


print(['consonant', 'vowel'][input() in 'aieou'])


s = input()
l = 'aiueo'
print('vowel' if s in l else 'consonant')


print('vowel' if input() in {'a', 'i', 'u', 'e', 'o'} else 'consonant')


c = str(input())
print('vowel' if c in 'aiueo' else 'consonant')


print(('consonant', 'vowel')[input() in 'aeiou'])


print('vowel' if input() in list('aeiou') else 'consonant')


c = input()
answer = 'vowel' if c in 'aiueo' else 'consonant'
print(answer)


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


print('cvoonwseoln a n t'[input() in 'aeiou'::2])


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


c = input()
print(c in 'aiueo' and 'vowel' or 'consonant')


print('vowel' * (input() in 'aiueo') or 'consonant')


s = input()
print('vowel' if s in list('aiueo') else 'consonant')


c = input()
if 'aiueo'.count(c):
	print('vowel')
else:
	print('consonant')


s = 'aeiou'
c = input()
print('vowel' if c in s else 'consonant')


c = input()
print('vowel' if c in 'aioueo' else 'consonant')


a = input()
if a in 'aeiou':
	print('vowel')
else:
	print('consonant')


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


c = input()
ans = 'vowel' if c in 'aiueo' else 'consonant'
print(ans)


c = str.lower(input())

def answer(c: str) -> str:
	n = ('a', 'e', 'i', 'o', 'u')
	if c in n:
		return 'vowel'
	else:
		return 'consonant'
print(answer(c))


print('vowel') if list('aiueo').count(input()) != 0 else print('consonant')


c = input()
print('vowel' if 'aeiou'.count(c) == 1 else 'consonant')


c = input()
v = 'aeiou'
print('vowel' if c in v else 'consonant')


c = input()
l = ['a', 'i', 'u', 'o', 'e']
print(('consonant', 'vowel')[c in l])


moji = str(input())
print('vowel' if moji in 'aeoiu' else 'consonant')


s = input()
print(['consonant', 'vowel'][s in 'aiueo'])


c = input()
s = 'aiueo'
if c in s:
	print('vowel')
else:
	print('consonant')


moji = input()
boin = ['a', 'e', 'i', 'o', 'u']
if moji == boin[0] or moji == boin[1] or moji == boin[2] or (moji == boin[3]) or (moji == boin[4]):
	print('vowel')
else:
	print('consonant')


def atc_049a(c: str) -> str:
	if c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u'):
		return 'vowel'
	else:
		return 'consonant'
c = input()
print(atc_049a(c))


print('cvoonwseoln a n t'[input() in 'aiueo'::2])


c = input()
print(['consonant', 'vowel'][c in 'aiueo'])


c = input()[0]
aiueo = 'aiueo'
if c in aiueo:
	print('vowel')
else:
	print('consonant')


p = ['consonant', 'vowel']
a = input()
b = 'aeiou'
print(p[a in b])


print(['consonant', 'vowel'][input() in list('aiueo')])


a = input()
b = list('aiueo')
print('vowel' if a in b else 'consonant')


c = input()
print('vowel' if c in list('aiueo') else 'consonant')


c = input()
print('vowel' if c in 'aeuio' else 'consonant')


def iroha():
	letter = input()
	vols = ['a', 'i', 'u', 'e', 'o']
	for elm in vols:
		if elm == letter:
			print('vowel')
			return
	print('consonant')

def __starting_point():
	iroha()
__starting_point()


c = input()
s = 'aiueo'
print('vowel' if s.count(c) != 0 else 'consonant')


c = input()
boin = 'aeiou'
if boin.find(c) == -1:
	print('consonant')
else:
	print('vowel')


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


print('vowel' if 'aiueo'.find(input()) >= 0 else 'consonant')


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

def __starting_point():
	solve()
__starting_point()


ans = 'vowel' if input() in 'aeiou' else 'consonant'
print(ans)


def main():
	c = input()
	boin = ['a', 'e', 'i', 'o', 'u']
	print('vowel') if c in boin else print('consonant')

def __starting_point():
	main()
__starting_point()


V = 'aeiou'
c = input()
print('vowel' if c in V else 'consonant ')


import sys, math
from itertools import combinations as c, product as p
from collections import deque
sys.setrecursionlimit(10 ** 9)

def si():
	return input()

def ii():
	return int(input())

def fi():
	return float(input())

def lstr():
	return input().split()

def lint():
	return list(map(int, input().split()))

def lint_dec():
	return list([int(x) - 1 for x in input().split()])

def lnstr(n):
	return [input() for _ in range(n)]

def lnint(n):
	return [int(input()) for _ in range(n)]

def lint_list(n):
	return [lint() for _ in range(n)]
print('vowel' if si() in 'aiueo' else 'consonant')


print(['consonant', 'vowel'][['a', 'i', 'u', 'e', 'o'].count(input())])


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


a = ['a', 'i', 'u', 'e', 'o']
print('cvoonwseoln a n t'[input() in a::2])


print('vowel' if list('aeiou').count(input()) else 'consonant')


print(['consonant', 'vowel']['aeiou'.count(input()) > 0])


c = input()
lists = ['a', 'e', 'i', 'u', 'o']
answer = 'consonant'
for i in lists:
	if c == i:
		answer = 'vowel'
print(answer)


print('cvoonwseoln a n t'[len(set(['a', 'i', 'u', 'e', 'o', input()])) == 5::2])


c = str(input())
vowel_words = ('a', 'e', 'i', 'o', 'u')
result = 'ret'
if c in vowel_words:
	result = 'vowel'
else:
	result = 'consonant'
print(result)


c = input()
print(('consonant', 'vowel')[int(c in 'aeiuo')])


print('vowel' if input() in 'aeiouAEIOU' else 'consonant')


print('vowel' if input() in 'aioue' else 'consonant')


v = 'aiueo'
l = input()
if l in v:
	print('vowel')
else:
	print('consonant')


c = input().rstrip()
print('vowel' if c in 'aeiou' else 'consonant')


print('vowel' if input() in 'aeoui' else 'consonant')


c = input()
print('vowel ' if c in 'aeiuo' else 'consonant')


s = input()
v = 'aeiou'
if s in v:
	print('vowel')
else:
	print('consonant')


cond = 0
if input() in 'auieo':
	cond = 1
print(['consonant', 'vowel'][cond])


print(input() in 'aeiou' and 'vowel' or 'consonant')


print(['consonant', 'vowel'][len(set(['a', 'i', 'u', 'e', 'o', input()])) == 5])


x = input()
print('vowel' if 'aeiou'.count(x) == 1 else 'consonant')