main = getLine >> getLine >>= print . foldl (\acc x -> if x == ' ' then 1 - acc else acc) 1