Back to Problem List

W or L


Given a random combination of 'W's and 'L's, output which letter appears more

INPUT FORMAT:

A string SS​ of length ll​ (ll​ is odd, l<106l < 10^6​) containing Ws and Ls

OUTPUT FORMAT:

W or L

SAMPLE INPUT:

WWWWLLLLLLWWWW

SAMPLE OUTPUT:

W

SAMPLE INPUT:

LWLWLWLLLW

SAMPLE OUTPUT:

L

Write code below: