# Suggested problems

## John is planning to plant trees in the city

Jan. 30, 2021, 1:33 p.m. by kiransam

## A Rapid Introduction to Molecular Biology

Figure 1. A 1900 drawing of onion cells at different stages of mitosis by Edmund Wilson.

Making up all living material, the cell is considered the building block of life. The nucleus, a component of most eukaryotic (nonbacterial) cells, has been known to be the hub of cellular activity for 150 years. Seen under a light microscope, the nucleus appears to simply be a darker region of the cell, but as we increase magnification, we find a hodgepodge of substances in the nucleus, which undergoes a flurry of activity leading up to and during mitosis, or cell division; see Figure 1.

...

## Problem

John is planning to plant trees in the city.The city is organized in such a way that only similar continuous blocks can be done within a given time. John has the information about the arrangement of blocks. Help him to calculate the maximum number of plants that he can able to complete within the given time

Given: First line of input contains N denoting number of blocks. Then for following N space separated number denotes type of block

Return: Output maximum number of plants that he can able to plant in blocks

Check out this website on Data Science Course for more details

## Sample Dataset

5
0 1 1 0 1


## Sample Output

2