main = getLine >> getLine >>= print . (`mod` 2) . length . words