Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <bits/stdc++.h>
- using namespace std;
- typedef long long ll;
- int main()
- {
- string n;
- ll aux=0;
- cin>>n;
- for(int i=1;i<n.size();i++)
- {
- if(n[i]=='e')
- {
- aux++;
- }
- //cout<<aux;
- }
- cout<<"h";
- for(int i=0;i<2*aux;i++)
- {
- cout<<"e";
- }
- cout<<"y";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement