def mostra_array(array, texto):
for posicao, num in enumerate(array):
print("{}[{}] = {}".format(texto, posicao, num))
pares= []
impares= []
for i in range(15):
n= int(input())
if n%2==0:
pares.append(n)
if len(pares) == 5:
mostra_array(pares, "par")
pares = []
if n%2!=0:
impares.append(n)
if len(impares) == 5:
mostra_array(impares, "impar")
impares = []
mostra_array(impares, "impar")
mostra_array(impares, "par")
ZGVmIG1vc3RyYV9hcnJheShhcnJheSwgdGV4dG8pOgogICAgZm9yIHBvc2ljYW8sIG51bSBpbiBlbnVtZXJhdGUoYXJyYXkpOgogICAgICAgIHByaW50KCJ7fVt7fV0gPSB7fSIuZm9ybWF0KHRleHRvLCBwb3NpY2FvLCBudW0pKQoKcGFyZXM9IFtdCmltcGFyZXM9IFtdCgpmb3IgaSBpbiByYW5nZSgxNSk6CgogICAgbj0gaW50KGlucHV0KCkpCiAgICBpZiBuJTI9PTA6CiAgICAgICAgcGFyZXMuYXBwZW5kKG4pCiAgICAgICAgaWYgbGVuKHBhcmVzKSA9PSA1OgogICAgICAgICAgICBtb3N0cmFfYXJyYXkocGFyZXMsICJwYXIiKQogICAgICAgICAgICBwYXJlcyA9IFtdCgogICAgaWYgbiUyIT0wOgogICAgICAgIGltcGFyZXMuYXBwZW5kKG4pCiAgICAgICAgaWYgbGVuKGltcGFyZXMpID09IDU6CiAgICAgICAgICAgIG1vc3RyYV9hcnJheShpbXBhcmVzLCAiaW1wYXIiKQogICAgICAgICAgICBpbXBhcmVzID0gW10KCm1vc3RyYV9hcnJheShpbXBhcmVzLCAiaW1wYXIiKQptb3N0cmFfYXJyYXkoaW1wYXJlcywgInBhciIpCgo=