#include<cstring> #include<iostream> #include<vector> #include<ctype.h> using namespace std; int main() { char a[101]; vector<char>con; int i; while(cin>>a) { con.clear(); int l=strlen(a); for(i=0; i<l; i++) { if(a[i]=='A' || a[i]=='a' || a[i]=='I' || a[i]=='i' || a[i]=='e' || a[i]=='E' || a[i]=='o' || a[i]=='O'|| a[i]=='U' || a[i]=='u' || a[i]=='y' || a[i]=='Y') { continue; } else { char c=tolower(a[i]); con.push_back(c); } } for(i=0; i<con.size(); i++) { char cc; cc=con[i]; cout<<"."<<con[i]; } cout<<endl; } return 0; }
Saturday, May 21, 2016
CF 118A
Labels:
Codeforces
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thank you for commenting. Please wait for response :)