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: N, K, L = map(int, input().split())
  par = list(range(N + 1))
  rank = [0] * (N + 1)
  cnt = [1] * (N + 1)
  
  
  def root(x):
      if par[x] == x:
          return x
      else:
          par[x] = root(par[x])
          return par[x]
  
  
  def same(x, y):
      return root(x) == root(y)
  
  
  def unite(x, y):
      xr = root(x)
      yr = root(y)
      if xr == yr:
          return
      if rank[xr] < rank[yr]:
          par[xr] = yr
      else:
          par[yr] = xr
          if rank[xr] == rank[yr]:
              rank[xr] += 1
  
  
  for _ in range(K):
      x, y = map(int, input().split())
      unite(x, y)
  par_r = par[:]
  par = list(range(N + 1))
  for _ in range(L):
      x, y = map(int, input().split())
      unite(x, y)
  ans = [1] * (N)
  r_dict = {}
  
  for i in range(1, N + 1):
      if (par_r[i], par[i]) in r_dict:
          r_dict[(par_r[i], par[i])] += 1
      else:
          r_dict[(par_r[i], par[i])] = 1
  ans = []
  for i in range(1, N + 1):
      ans.append(r_dict[(par_r[i], par[i])])
  print(" ".join(map(str, ans)))
  
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"}]