Masala #CE5RO6U3YE

Xotira 32 MB Vaqt 1000 ms
14

Bumps in the Road

Your car is old, it breaks easily. The shock absorbers are gone and you think it can handle about 15 more bumps before it dies totally.

Unfortunately for you, your drive is very bumpy! Given a string showing either flat road ( _ ) or bumps ( \(n\) ). If you are able to reach home safely by encountering \(15 bumps or less\), return \(Woohoo!\), otherwise return \(Car Dead\)


Kiruvchi ma'lumotlar:

Chiquvchi ma'lumotlar:

Misollar
# input.txt output.txt
1
n
Woohoo!
2
_nnnnnnn_n__n______nn__nn_nnn
Car Died