four-line method for rice