Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.6 kB
0
Indexable
Never
// restiki_noliki_zadachs.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
//

#include <iostream>
#include <string>


using namespace std;
int main()
{

	string fir, dob, trh;

	cin >> fir >> dob >> trh;

	if (fir[0] == 88 && dob[1] == 88 && trh[2] == 88) cout << "Win";

	else if (fir[2] == 88 && dob[1] == 88 && trh[0] == 88) cout << "Win";

	else if (fir[0] == 88 && dob[0] == 88 && trh[0] == 88) cout << "Win";

	else if (fir[1] == 88 && dob[1] == 88 && trh[1] == 88) cout << "Win";

	else if (fir[2] == 88 && dob[2] == 88 && trh[2] == 88) cout << "Win";

	else if (fir[0] == 88 && fir[1] == 88 && fir[2] == 88) cout << "Win";

	else if (dob[0] == 88 && dob[1] == 88 && dob[2] == 88) cout << "Win";

	else if (trh[0] == 88 && trh[1] == 88 && trh[2] == 88) cout << "Win";



	else if (fir[0] == 79 && dob[1] == 79 && trh[2] == 79) cout << "lose";

	else if (fir[2] == 79 && dob[1] == 79 && trh[0] == 79) cout << "lose";

	else if (fir[0] == 79 && dob[0] == 79 && trh[0] == 79) cout << "lose";

	else if (fir[1] == 79 && dob[1] == 79 && trh[1] == 79) cout << "lose";

	else if (fir[2] == 79 && dob[2] == 79 && trh[2] == 79) cout << "lose";

	else if (fir[0] == 79 && fir[1] == 79 && fir[2] == 79) cout << "lose";

	else if (dob[0] == 79 && dob[1] == 79 && dob[2] == 79) cout << "lose";

	else if (trh[0] == 79 && trh[1] == 79 && trh[2] == 79) cout << "lose";

	else cout << "Draw";


}