LearnPy Hub
← Arena
EasyRating 800

League Points

A football team gets 3 points for a win (W), 1 for a draw (D) and 0 for a loss (L). Given the results, print the total points.

Input

A string of W, D and L.

Output

Total points.

Sample 1

Input
WWDL
Output
7

Sample 2

Input
LLL
Output
0
solution.py
Output appears here
League Points · Python Arena problem · LearnPy Hub