Problem G
Teningakast
Languages
en
is

What dice to roll is given as a string.
Input
The first line contains one integer
Output
Print Raunhaeft if the dice roll
could result in
Scoring
Group |
Points |
Constraints |
1 |
30 |
No ! in the input |
2 |
70 |
No further restrictions |
Sample Input 1 | Sample Output 1 |
---|---|
5 1d12+3 15 1d4+2d6 2 -1d6+1d4 -1 1d3! 100 1d6!-1d4! 0 |
Raunhaeft Svindl Raunhaeft Raunhaeft Raunhaeft |