#include <iostream>
#include <string.h>
using namespace std;

int main(void){
  char str[100000];
  int flg = 0;

  while(1){

    cin >> str;
    if( flg == 1 ) cout << " ";
    else flg = 1;
   
    for( int i = 0 ; i < strlen(str) ; i++ ){    
      str[i] -= 'a'-'A';
    if( 'A' <= str[i] && str[i] <= 'Z' ) cout << str[i];
    else{ cout << "."; flg = 2; goto end;}
    }
  }
 end:
  cout << endl;
  return 0;
}