Platforms are stretches of `-` characters separated by one or more  characters.

For example:

```
------ --    ------ -

```

The above has 4 platforms sizes 6, 2, 6 and 1.

Platforms that are not supported will fall. To be supported platforms need Jimmies.

Jimmies look like this:

```
\o/

```

They are three units wide. Don't ask me what supports Jimmies.

Jimmies go under platforms to support them:

```
------------------
\o/  \o/  \o/  \o/

```

Each platform has a "center" of mass which is the average position of all its `-`s. (Or the average of the start and end.)

A platform is supported by Jimmies if its center of mass is between two points of the platform above a Jimmy or exactly above part of a Jimmy.

For example:

```
-----
 \o/

```

The above platform is supported because the center of mass is in a place the Jimmy is touching.

```
----------------
  \o/        \o/

```

The above platform is also supported because its center of mass is between the two Jimmies.

```
----
 \o/

```

In the above example the center of mass is between the Jimmy's hand and the Jimmy's head and thus the platform is supported by that Jimmy.

The following platform is not supported:

```
----
  \o/

```

This is because its center of mass is not directly above any part of the Jimmy and there is no Jimmy to the left.

A Jimmy can help support multiple platforms:

```
------- -------------
\o/   \o/           \o/

```

Your task is to take as input platforms (consisting only of `-`s and s). And output the minimum number of Jimmies required to support all the platforms given.

This is [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'") so answers will be scored in bytes with fewer bytes being better.

Test cases
----------

Each line has the input, `>` and then the output. Below I have added one way to place the Jimmies to support the platforms. This is neither part of the input nor output, it's just there for your convenience.

```
-------------------------------- > 1
              \o/
--------------- ---------------- > 2
      \o/              \o/
- ---------------------------- - > 2
\o/                          \o/
-  --------------------------- - > 3
\o/\o/                       \o/
--- - ------------------------ - > 3
\o/ \o/                      \o/
- ------------- -------------- - > 3
\o/           \o/            \o/
--------------- - -------------- > 3
      \o/       \o/          \o/
- - -  ------------------------- > 3
\o/ \o/           \o/

```