Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
384 B
1
Indexable
Never
#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");

    }
}
Leave a Comment