Baem is a kind of logic puzzles. It is played on square grid, where two cells are marked. The task is to draw a single line between marked cells. this line never touches itself, not even diagonally. Numbers outside the grid show how many cells must be blackened in the corresponding row or column.