Untitled
unknown
plain_text
2 years ago
384 B
7
Indexable
#include <bits/stdc++.h>
using namespace std;
int main()
{
    string pl;
    cin >> pl
    string s;
    cin >> s;
    int a = 0, b = 0;
    for(auto c : s)
    {
      if(c == 'a') a++;
      else b++;
    }
    if(a % 2 == 0)
    {
      cout << pl;
      return 0;
    }
    else
    {
        cout << (pl == "Buggy" ? "Proggy" : "Buggy");
    }
}Editor is loading...
Leave a Comment