#include <iostream>
#include <cstring>
using namespace std;
int vowel(char x) {
char s[11] = "AEIOUaeiou";
for (int i = 0; i < 11; ++i) {
if (s[i] == x) {
return 1;
}
}
return 0;
}
int character(char x) {
if (('a' <= x && x <= 'z') || ('A' <= x && x <= 'Z')) {
return 1;
}
return 0;
}
int main() {
char s[1001][1001];
int n = 0;
while (!cin.eof()) {
cin.getline(s[n], 1001);
++n;
}
int p = -1, v = 0, v2 = -1, vf = 0;
for (int i = 0, cnt = 0; i < n; ++i) {
int m = strlen(s[i]);
for (int j = 0; j < m; ++j) {
if (character(s[i][j]) == 1) {
if (p == -1) {
p = j;
}
if (vowel(s[i][j]) == 1) {
++v;
}
} else {
if (v == cnt && p != -1) {
for (int k = p; k < j; ++k) {
cout << s[i][k];
s[i][k] = ' ';
vf = 1;
//a = 1;
if (k == j - 1) {
cout << "n";
}
}
v2 = v;
}
p = -1;
v = 0;
}
if (v2 == v) {
break;
}
if (v == cnt && p != -1 && j == m - 1) {
for (int k = p; k < m; ++k) {
cout << s[i][k];
s[i][k] = ' ';
vf = 1;
if (k == m - 1) {
cout << "n";
}
}
}
if (j == m - 1 && cnt <= 20) {
++cnt;
j = -1;
v = 0;
p = -1;
}
}
p = -1;
v = 0;
v2 = -1;
cnt = 0;
if (vf == 1 && i == n - 1) {
vf = 0;
i = -1;
}
}
return 0;
}
/*
for (int i = 0; i < n; ++i) {
cout << s[i] << "n";
}
*/