Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
659 B
1
Indexable
Never
#include <iostream>
using namespace std;
struct gnom
{
    char pol;
    int age;
    int height;
};

int main()
{
    gnom gnom1;
    cin >> gnom1.pol >> gnom1.age >> gnom1.height;
    gnom gnom2;
    cin >> gnom2.pol >> gnom2.age >> gnom2.height;
    gnom gnom3;
    cin >> gnom3.pol >> gnom3.age >> gnom3.height;
    int f=0, g=0;
    if (gnom1.pol == 'm')f++;
    else
    {
        g++;
    }
    if (gnom2.pol == 'm')f++;
    else
    {
        g++;
    }
    if (gnom3.pol == 'm')f++;    
    else
    {
        g++;
    }
    if (f > g)cout << "patriarhat";
    else
    {
        cout << "femki atakuyt";
    }
}