l=[int(i) for i in input().split()] temp=maxi=0 for i in l: if(i==0): temp=0 else: temp+=1 maxi=max(maxi,temp) print(maxi)
To embed this program on your website, copy the following code and paste it into your website's HTML: