#include <stdio.h>
#include <string.h>
#include <ctype.h>
#define linelength 65536
#define null 0

/* Made by Michael Westergaard (c) 2000, you may use this program freely */

char s[linelength];
char* vokaler="AEIOUYÆØÅæøå";
char* konsonanter="BCDFGHJKLMNPQRSTVWXZ";
char* t;

char word_char;
char* word_string;
int word_pos;

char* words(char* s=null) {
  if (s) {
    word_string=s;
    word_pos=0;
    word_char=word_string[0];
  }
  if (word_char==null)
    return null;
  word_string[word_pos]=word_char;
  char* returnpos=word_string+word_pos;
  if (strchr(vokaler,toupper(word_char)) || strchr(konsonanter,toupper(word_char))) { // bogstav
    while (strchr(vokaler,toupper(word_string[word_pos])) || strchr(konsonanter,toupper(word_string[word_pos])))
      word_pos++;
  } else { // ikke bogstav
    while ((!strchr(vokaler,toupper(word_string[word_pos]))) && (!strchr(konsonanter,toupper(word_string[word_pos]))) && word_string[word_pos])
      word_pos++;
  }
  word_char=word_string[word_pos];
  word_string[word_pos]=null;
  return returnpos;
}

int is_word(char* s) {
  return strchr(vokaler,toupper(s[0])) || strchr(konsonanter,toupper(s[0]));
}

char semisyllable_char;
char* semisyllable_string;
int semisyllable_pos;

char* semisyllables(char* s=null) {
  if (s) {
    semisyllable_string=s;
    semisyllable_pos=0;
    semisyllable_char=semisyllable_string[0];
  }
  if (semisyllable_char==null)
    return null;
  semisyllable_string[semisyllable_pos]=semisyllable_char;
  char* returnpos=semisyllable_string+semisyllable_pos;
  if (strchr(vokaler,toupper(semisyllable_char))) { // Vi skal have sidste del
                                                    // af en halvstavelse
    int i=semisyllable_pos+1;
    while (!strchr(vokaler,toupper(semisyllable_string[i])) && semisyllable_string[i])
      i++;
    if (semisyllable_string[i])
      semisyllable_pos=(semisyllable_pos+i+1)/2;
    else
      semisyllable_pos=i;
  } else {				            // Vi skal have frste del
                                                    // af en halvstavelse
    while (!strchr(vokaler,toupper(semisyllable_string[semisyllable_pos])) && semisyllable_string[semisyllable_pos])
      semisyllable_pos++;
  }
  semisyllable_char=semisyllable_string[semisyllable_pos];
  semisyllable_string[semisyllable_pos]=null;
  return returnpos;
}

int is_second(char* s) {
  return strchr(vokaler,toupper(s[0])) && 1;
}

void main(void) {
  while (!feof(stdin)) {
    fgets(s,linelength,stdin);
    t=words(s);
    while (t) {
      if (is_word(t)) {
	char* u=semisyllables(t);
	int j=0;
	while (u) {
	  if (is_second(u)) {
	    fputs(u,stdout);
	    fputs("p",stdout);
	    fputs(u,stdout);
	  } else {
	    fputs(u,stdout);
	  }
	  j=(j+1)%2;
	  u=semisyllables();
	}
      } else
	fputs(t,stdout);
      t=words();
    }
  }
}

