import Control.Monad
import qualified Data.ByteString.Char8 as BS
import Data.Maybe
import Data.Array.Unboxed
import Data.List

main = do
    getLine
    s <- getLine
    let
        t = sort s
    print $ ( `div` 2 ) $ length $ filter id $ zipWith (/=) s t