这题没啥可说的。。看代码把
#include<bits/stdc++.h>
using namespace std;
const long long maxn = 100+5;
long long a, x, y;
int main()
{
while (cin >> x) {
cin >> y >> a;
a %= x+y;
if (a != 0 && a - x <= 0)
cout << "wanshen" << endl;
else
cout << "light" << endl;
}
return 0;
}