# your code goes here
def numberGame(s):
index = 0
for i in s:
if i != s[len(s) - index -1]:
return "loses"
break # ??
index += 1
return "wins"
print(numberGame("343"))
print(numberGame("8898"))
IyB5b3VyIGNvZGUgZ29lcyBoZXJlCgpkZWYgbnVtYmVyR2FtZShzKToKICAgIGluZGV4ID0gMAogICAgZm9yIGkgaW4gczoKICAgICAgICBpZiBpICE9IHNbbGVuKHMpIC0gaW5kZXggLTFdOgogICAgICAgICAgICByZXR1cm4gImxvc2VzIgogICAgICAgICAgICBicmVhayAjID8/CiAgICAgICAgaW5kZXggKz0gMQogICAgcmV0dXJuICJ3aW5zIgogICAgCgoKcHJpbnQobnVtYmVyR2FtZSgiMzQzIikpCnByaW50KG51bWJlckdhbWUoIjg4OTgiKSk=