-- yukicoder My Practice -- author: Leonardone @ NEETSDKASU main = ((=<<) (print . (minimum . (map length . (flip map ((:) (takeWhile (== (head "w")) . (reverse)) (return (drop 1 . (takeWhile (== (head "c")))))) . (flip ($)))))) getLine)