parseInt(x) = parse(Int,x)

parseMap(x::Array{SubString{String},1}) = map(parseInt, x)

function main()
    N,Q = readline() |> split |> parseMap
    s = readline()
    s = s[1:length(s)-1]
    order = []
    for i in 1:Q
       t,d = readline() |> split
       push!(order,[t[1],d[1]])
    end
end

main()
