RE on #2
n,ans=int(input().strip()),0 for i in range(n): s=input().split() ans+=int(s[0]=='#' and len(s)>1) print(ans)