From Codeforces. Grid shape recognition. Solve the geometry problem "L-shapes".
**From Codeforces.** Grid shape recognition. Solve the geometry problem "L-shapes".