#include <bits/stdc++.h>
using namespace std;
string a;
char b[55];
bool c[55];
bool d[55];
double sum;
char g[10] = {'A', 'E', 'I', 'O', 'U', 'a', 'e', 'i', 'o', 'u'};
int main() {
getline(cin, a);
strcpy(b, a.c_str());
int k = a.length() - 1;
for (int i = 0; i <= k; i++) {
d[i] = 0;
c[0] = 0;
}
for (int i = 0; i <= k; i++) {
if (isalpha(b[i]) != 0) {
c[i] = 1;
sum++;
for (int y = 0; y < 10; y++) {
if (b[i] == g[y]) {
d[i] = 1;
}
}
} else {
c[i] = 0;
}
}
for (int i = 0; i <= k; i++) {
if (c[i] == 1) {
cout << ".";
} else
cout << b[i];
}
cout << endl;
double f = sum / 3;
int h = int(sum / 3);
if (f - h > 0.5) {
h = int(sum / 3 ) + 1;
}
int p = 0;
int q = 0;
while (p < h) {
cout << b[q];
if (c[q] == 1) {
p++;
}
q++;
}
for (int i = q; i <= k; i++) {
if (c[i] == 1) {
cout << ".";
} else
cout << b[i];
}
cout << endl;
int pan = 0;
for (int i = h; i <= k; i++) {
if (d[i] == 1) {
pan = 1;
}
}
if (pan == 1) {
int p = 0;
int q = 0;
while (p < h) {
cout << b[q];
if (c[q] == 1) {
p++;
}
q++;
}
for (int i = q; i <= k; i++) {
if (c[i] == 1 && d[i] != 1) {
cout << ".";
} else
cout << b[i];
}
} else {
double f = sum / 3 * 2;
int h = int(sum / 3 * 2);
if (f - h > 0.5) {
h = int(sum / 3 * 2 + 1);
}
int p = 0;
int q = 0;
while (p < h) {
cout << b[q];
if (c[q] == 1) {
p++;
}
q++;
}
for (int i = q; i <= k; i++) {
if (c[i] == 1) {
cout << ".";
} else
cout << b[i];
}
}
}