#include<iostream>
#include<string>
using namespace std;
int main() {
string str, lastr;
cin >> str;
int j = 0;
for (; j<str.length(); j++) {
if (str[j] == 'a' || str[j] == 'A' || str[j] == 'e' || str[j] == 'E' || str[j] == 'i' || str[j] == 'I' || str[j] == 'o' || str[j] == 'O' || str[j] == 'u' || str[j] == 'U')
continue;
else break;
}
lastr.append(str, 0, j);
if (j == str.length()) {
cout << str << " -ay" << endl;
}
lastr.append(str, j + 1, str.length() - j - 1);
lastr += "-";
string temp(1,str[j]);
temp += "ay";
lastr.append(temp);
cout << lastr << endl;
system("pause");
}