Algorithm


A. String Task
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

Petya started to attend programming lessons. On the first lesson his task was to write a simple program. The program was supposed to do the following: in the given string, consisting if uppercase and lowercase Latin letters, it:

  • deletes all the vowels,
  • inserts a character "." before each consonant,
  • replaces all uppercase consonants with corresponding lowercase ones.

Vowels are letters "A", "O", "Y", "E", "U", "I", and the rest are consonants. The program's input is exactly one string, it should return the output as a single string, resulting after the program's processing the initial string.

Help Petya cope with this easy task.

Input

The first line represents input string of Petya's program. This string only consists of uppercase and lowercase Latin letters and its length is from 1 to 100, inclusive.

Output

Print the resulting string. It is guaranteed that this string is not empty.

Examples
input
Copy
tour
output
Copy
.t.r
input
Copy
Codeforces
output
Copy
.c.d.f.r.c.s
input
Copy
aBAcAba
output
Copy
.b.c.b



 

Code Examples

#1 Code Example with C++ Programming

Code - C++ Programming

#include<bits/stdc++.h>
using namespace std;

#define ll long long
#define endl '\n'
#define debug(n) cout<<(n)<<endl;
const ll INF = 2e18 + 99;

int main(){
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);

  string s, r = "";
  cin>>s;
  transform(s.begin(), s.end(), s.begin(), ::tolower);
  for(auto i : s){
    if( i == 'a' || i == 'e' || i == 'i' || i == 'o' || i == 'y' || i == 'u'){
      continue;
    }
    else{
      r += ".";
      r += i;
    }
  }
  cout<<r<<endl;
}
Copy The Code & Try With Live Editor

Input

x
+
cmd
tour

Output

x
+
cmd
.t.r
Advertisements

Demonstration


Codeforcess solution 118-A A. String Task C++, Java, Js and Python,118-A,Codeforcess solution

Previous
Codeforces solution 1080-B-B. Margarite and the best present codeforces solution
Next
CodeChef solution DETSCORE - Determine the Score CodeChef solution C,C+