fun main(args: Array<String>) {
	readLine()
	val input = (readLine()?:return).toCharArray()
	var count = 0
	for (c in input)
		count += if (c == 'R') 1 else -1

	if (count > 0)
		println("Yes")
	else
		println("No")
}