#include <iostream>
using namespace std;

int main() {
    int t, k;
    cin >> t >> k;

    if (t == k) {
        cout << "tie" << endl;
    } else if ((t == 1 && k == 2) || (t == 2 && k == 3) || (t == 3 && k == 1)) {
        cout << "win" << endl;
    } else {
        cout << "lose" << endl;
    }

    return 0;
}    
/**************************************************************
	Problem: 1048
	User: linzihang
	Language: C++
	Result: Accepted
	Time:7 ms
	Memory:2072 kb
****************************************************************/