parseInt(x) = parse(Int, x)

function main()
	n,h = map(parseInt, split(readline()))
    a,b = Array{Int}(n)
	for i in 1:n
		a[i],b[i] = map(parseInt, split(readline()))
	end
    print("OK")
end

main()