#C2009. Gridland Traffic Lights

    ID: 45278 Type: Default 1000ms 256MiB

Gridland Traffic Lights

Gridland Traffic Lights

You are given two integers m and n representing the number of rows and columns of a grid, respectively. Your task is to generate a configuration for traffic lights for the grid. For each cell at row i and column j (0-indexed), place a '|' if $$(i+j) \mod 2 = 0$$ and '-' otherwise.

The output should consist of m lines where each line is a string of n characters representing a row in the grid.

For example, when m = 3 and n = 4, the grid configuration should be:

|-|-
-|-|
|-|-

inputFormat

The input consists of a single line with two space-separated integers m and n (1 ≤ m, n ≤ 1000), representing the number of rows and columns respectively.

outputFormat

Output m lines, each containing a string of n characters. The j-th character of the i-th line must be '|' if $$(i+j) \mod 2 = 0$$, and '-' otherwise.

## sample
3 4
|-|-
-
</code></pre>