Five-line solution
Four-line solution