Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- #define op ios::sync_with_stdio(0);cin.tie(0);cout.tie(0)
- bool vl(char c){
- return (c=='a'|| c=='e' || c=='i' || c=='o' || c=='u');
- }
- int main(){
- op;
- int a=0,b=0,c=0;
- string s,ss,sss;
- getline(cin,s);
- getline(cin,ss);
- getline(cin,sss);
- for(auto u : s){
- if(vl(u)) a++;
- }
- for(auto u : ss){
- if(vl(u)) b++;
- }
- for(auto u : sss){
- if(vl(u)) c++;
- }
- if(a==5 && b==7 && c==5) cout<<"YES"<<"\n";
- else cout<<"NO"<<"\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement