Problem:


Score : 200 points

Problem Statement

There are N people numbered 1 to N. Each person wears a red hat or a blue hat.

You are given a string s representing the colors of the people. Person i wears a red hat if s_i is R, and a blue hat if s_i is B.

Determine if there are more people wearing a red hat than people wearing a blue hat.

Constraints

1 \leq N \leq 100

|s| = N

s_i is R or B.

Input

Input is given from Standard Input in the following format:

N
s

Output

If there are more people wearing a red hat than there are people wearing a blue hat, print Yes; otherwise, print No.

Sample Input 1

4
RRBR

Sample Output 1

Yes

There are three people wearing a red hat, and one person wearing a blue hat.

Since there are more people wearing a red hat than people wearing a blue hat, the answer is Yes.

Sample Input 2

4
BRBR

Sample Output 2

No

There are two people wearing a red hat, and two people wearing a blue hat.

Since there are as many people wearing a red hat as people wearing a blue hat, the answer is No.



Sample input:
4
RRBR


Sample output:
Yes

Submission status: Accepted

Solution code:
N=input()
s=list(input())
r=s.count("R")
b=s.count("B")
if r>b:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()

rc = 0
bc = 0
for si in s:
	if si == 'R':
		rc += 1
	else:
		bc += 1

if rc > bc:
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

# -*- coding: utf-8 -*-

# -*- coding: utf-8 -*-
from sys import stdin

###########################################
# delete here


############################################
#from sys import stdin
import numpy as np

# read data for n sequences.
N = int(stdin.readline().split()[0])
data = str(stdin.readline().split())

count = 0

for let in data:
    if let == "R":
        count += 1

if count > N-count:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = list(input())
R = 0
B = 0
for char in s:
    if char == 'R':
        R += 1
    if char == 'B':
        B += 1

if R > B:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n=input()
S=input()
if S.count("R")>S.count("B"):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a=input()
x=input()

b=x.count("B")
r=x.count("R")
if r>b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = list(input())

Red = s.count("R")
Blue = s.count("B")

if Red > Blue:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()

b = 0
r = 0
for it in s:
    if it=='B':
        b+=1
    elif it=='R':
        r+=1

if r>b:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()

cnt_r = 0
cnt_b = 0

for i in s:
    if i == 'R':
        cnt_r += 1
    elif i == 'B':
        cnt_b += 1

print('Yes' if cnt_r > cnt_b else 'No')

Submission status: Accepted

Solution code:
N = int(input())
s = list(input())

r = 0
b = 0
for item in s:
    if item == "R":
        r+=1
    else:
        b+=1

if r > b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = list(input())


if(s.count('R') > s.count('B')):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
input()
s = input().strip()
print('Yes' if s.count('R') > s.count('B') else 'No')

Submission status: Accepted

Solution code:
N = int(input())
S = list(str(input()))
red_size = sum([s == 'R' for s in S])
blu_size = N - red_size
if red_size > blu_size :
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
from collections import Counter

N = int(input())
S = str(input())
all_dict = {'R' : 0, 'B' : 0}

for i in range(N):
  s = S[i]
  all_dict[s] += 1

if all_dict['R'] > all_dict['B']:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n = int(input())
s = input()
r = 0
for i in range(n):
    if s[i] == 'R':
        r += 1
    else:
        r -= 1
if r > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
def p(*a):
  s=" ".join(map(str,a))
  #print(s)
  sys.stderr.write(s+"\n")


n=int(input())
l=list(input())

p(n,l)

r=l.count('R')
b=l.count('B')

ans="No"
if r>b: ans="Yes"

print(ans)

Submission status: Accepted

Solution code:
n = int(input())

s = str(input())

red = 0
blue = 0

for i in range(n):
    if s[i] == "R":
        red += 1
    else:
        blue += 1

if red > blue:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def main():
	n = int(input())
	colors = input()
	r = 0
	for i in range(n):
		if colors[i] == "R":
			r += 1
		else:
			r -= 1

	if r > 0:
		print("Yes")
	else:
		print("No")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from sys import stdin

def count(N, s):
    r = 0
    b = 0
    for i in range(N):
        if s[i] == 'R':
            r = r + 1
        else:
            b = b + 1
    if r > b:
        return 'Yes'
    else:
        return 'No'


if __name__ == '__main__':

    N = int(stdin.readline().rstrip())
    s = stdin.readline().rstrip()

    print(count(N,s))

Submission status: Accepted

Solution code:
N = int(input())
s = input()
if list(s).count("R")>N/2:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N=int(input())
s=list(input())
R=0
B=0
for i in range(N):
  if s[i]=="R":
    R=R+1
  else:
    B=B+1

if R>B:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()
#print(s)
r = 0
for i in range(n):
  if s[i] == 'R':
    r += 1
print('Yes' if r > n//2 else 'No')

Submission status: Accepted

Solution code:
N = input()
s = input()
R = s.count('R')
B = s.count('B')

if R > B:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()
r = s.count("R")
b = s.count("B")
if r > b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from collections import Counter
n = int(input())
f = Counter(input())
print('Yes' if f['R'] > f['B'] else 'No')

Submission status: Accepted

Solution code:
from sys import stdin

N= int(input())
l = input()

if l.count("B") < l.count("R"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# coding: utf-8
def main():
    N = int(input())
    s = input()
    rcount = 0
    bcount = 0
    for si in s:
        if si == 'R':
            rcount += 1
        elif si == 'B':
            bcount += 1
    if rcount > bcount:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
N = int(input())
s = input()

red = 0
blue = 0

for i in s:
    if i == 'R':
        red += 1
    else:
        blue += 1

if red > blue:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()

print("Yes" if s.count("R") > s.count("B") else "No")

Submission status: Accepted

Solution code:
N = int(input())
S = input()
counter_r = 0
counter_b = 0
for s in S:
  if s == 'R':
    counter_r += 1
  else:
    counter_b += 1
if counter_r > counter_b:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()
count_red = 0
count_blue = 0
for i in s:
    if i == "R":
        count_red += 1
    else:
        count_blue += 1

if count_red > count_blue:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    s = input()

    red_num = 0
    for cap in s:
        if cap == "R":
            red_num += 1
    
    if red_num > N/2:
        print("Yes")
        return
    print("No")

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import sys

N = int(input())
s = input()

if s.count('R') > N // 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = input()
s = input()

if s.count('R') > s.count('B') :
    print('Yes')
else :
    print('No')

Submission status: Accepted

Solution code:
n=int(input())
s=list(input())
cnt=0
for i in s:
  if 'R'==i:
    cnt+=1
if cnt>n-cnt:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n=int(input())
hoge=input()

if(hoge.count("R")>hoge.count("B")):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()

r = s.count("R")
b = s.count("B")

if r > b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
c = raw_input()
red = 0
blue = 0
for ch in c:
	if ch =='R':
		red = red + 1
	else:
		blue = blue + 1
if red > blue:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()
R = 0

for x in range(len(s)):
    if s[x] == "R":
        R += 1
    else:
        R -= 1
if R >= 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
s = input()

counter = 0
for si in s:
    if si == "R":
        counter = counter + 1
    else:
        counter = counter - 1

if counter > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
n = int(input())
s = input()

b, r = 0, 0
for c in s:
    if c == 'R':
        r += 1
    else:
        b += 1

print('Yes' if b < r else 'No')

Submission status: Accepted

Solution code:
N = int(input())
x = sum(c == 'R' for c in input())
print('Yes' if N // 2 < x else 'No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()

Red = 0
Blue = 0

for i in range(len(s)):
  if s[i] == 'R':
    Red = Red + 1
  elif s[i] == 'B':
    Blue = Blue + 1

if Red > Blue:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = list(input())

if s.count('R') > s.count('B'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())
s = input()

sr = int(s.count("R"))
sb = n - sr

if sr > sb:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
str0 = input()
str1 = input()

b = str1.count('B')
r = str1.count('R')

if b < r:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())
s = str(input())
if s.count('R') > s.count('B'):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n=input()
s=input()
red=0
blue=0
for i in s:
	if i=='R':
		red+=1
	else:
		blue+=1

if red>blue:
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
a = input()
b = input()
R=B=0
for i in b:
    if i=='R':
        R+=1
    else:
        B+=1
print('Yes') if R>B else print('No')

Submission status: Accepted

Solution code:
# coding: utf-8
ans = 'Yes'
dust = input()
code = input()

if code.count('R') <= code.count('B'):
    ans = 'No'

print(ans)

Submission status: Accepted

Solution code:
N = int(input())
s = input()
c = 0
for i in range(N):
    if s[i] == 'R':
        c += 1
if N/2 < c:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()
s = list(str(input()))

if s.count("R") > s.count("B"):
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
# import sys
# sys.setrecursionlimit(200000)

N = list(map(int, input().split(" ")))[0]
s = list(input())

s = [1 if x == "B" else 0 for x in s]
B = sum(s)
R = N - B

if R > B:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N=int(input())
r,b=0,0
X=[x for x in input()]
for x in X:
    if x=='R':
        r+=1
    else:
        b+=1

if r>b:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:

N  = int(input())
s  = input()

R = s.count('R')
B = N -R 

if( R > B):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n = input()
s = input()

red = 0
blue = 0
for c in s:
    if c == "R":
        red+=1
    else:
        blue+=1

# print(s, red, blue)
if red > blue:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
_ = int(input())
rb = input()
b = 0
r = 0
for i in range(_):
    if rb[i] == "R":
        r += 1
    elif rb[i] == "B":
        b += 1
if r > b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()
print("Yes") if s.count("R") > s.count("B") else print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()
red = s.count("R")
print("Yes" if red > n-red else "No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()
countR= 0
countB= 0
for i in range(N):
    if s[i] == 'R':
        countR += 1
    elif s[i] == 'B':
        countB += 1
        
if countR > countB:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N =int(input())
s = input()
R = s.count("R")
B = s.count("B")
if R > B:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()

b = r = 0
for c in s:
    if c == 'B':
        b += 1
    else:
        r += 1

if r > b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N=int(input())
s=list(input())
countR=0
countB=0
for i in range(len(s)):
  if s[i]=="R":
    countR+=1
  else:
    countB+=1
if countR>countB:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = list(input())

rcnt = 0
bcnt = 0
for i in range(n):
    if s[i] == 'R':
        rcnt += 1
    else:
        bcnt += 1
if rcnt > bcnt:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = list(input())
if s.count('R') > s.count('B'):
        print('Yes')
else:
        print('No')

Submission status: Accepted

Solution code:
N = int(input())
S = input()

R_num = S.count("R")

if(R_num > (N-R_num)):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()
R = 0
for ctr in range(N):
    if s[ctr] == 'R':
        R += 1
if R > N-R:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a = input()
t = input()
r =b =0
for i in range(len(t)):
  if t[i] == "R":
    r +=1
  elif t[i] == "B":
    b +=1

print("Yes" if r>b else "No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()
cnt_r = cnt_b = 0
for n in range(N):
    if s[n] == 'R':
        cnt_r += 1
    else:
        cnt_b += 1

if cnt_r > cnt_b:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N=int(input())
s=input()
red=s.count("R")
if red>N-red :
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
N = int(input())
s = input()
r = s.count('R')
B = s.count('B')
if r > B:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
input()
DATA=input()
R=DATA.count("R")
B=DATA.count("B")
if R> B:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()

count_red = 0
count_blue = 0
for i in s:
    if i == 'R':
        count_red += 1
    else: 
        count_blue += 1

if count_red > count_blue:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()
s = input()
slist = list(s)
Rnumber = slist.count("R")
if Rnumber > int(N) - Rnumber:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
S = str(input())
count = 0;
for i in range(0, N):
    if S[i] == "B":
        count += 1;
    else:
        count -=1;
if (count < 0):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
S = list(input())
r_num = S.count('R')
b_num = S.count('B')

if r_num > b_num:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s =  input()

red, blue = 0, 0
for h in s:
  if h == 'R':
    red += 1
  elif h == 'B':
    blue += 1

print('Yes' if red > blue else 'No')

Submission status: Accepted

Solution code:
n = int(input())
s = input().rstrip()

red = s.count('R')
blue = n - red
if red > blue:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()
red = 0
blue = 0
for i in range(N):
    if s[i] == 'R':
        red += 1
    else:
        blue += 1
if red > blue :
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())
people = input()
reds = 0
for i in people:
    if i == 'R':
        reds += 1
        if reds * 2 > n:
            print('Yes')
            break
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()
c = 0
for i in s:
    if i == 'R':
        c += 1

if c > len(s) - c:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str

def solve(N: int, s: str):
    if(s.count('R')>s.count('B')):
        print(YES)
    else:
        print(NO)
    return


# Generated by 1.1.3 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    s = next(tokens)  # type: str
    solve(N, s)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = int(input())
s = input()
if s.count("R")>s.count("B"):
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
N=int(input())
s=list(input())

r=s.count('R')
b=N-r

if b<r:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
N = input()
s = raw_input()
if s.count('R') > s.count('B'):
  print 'Yes'
else:
  print 'No'

Submission status: Accepted

Solution code:
n=int(input())
s=input()
r=0
b=0
for i in s:
    if i=="R":
        r+=1
    elif i =="B":
        b+=1
if r>b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
i = input()
s = input()

r = 0
b = 0
for c in s:
    if c == 'R':
        r += 1
    else:
        b += 1

if r > b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()

print('Yes' if s.count('R') > s.count('B') else 'No')

Submission status: Accepted

Solution code:
#b
from collections import Counter

N = input()
s = input()

counter = Counter(s)
if counter.get('R', 0) > counter.get('B', 0):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

def solve():
    N = int(input())
    s = input()
    if 2*s.count('R') > N:
        return 'Yes'
    else:
        return 'No'
    
        

if __name__ == '__main__':
    print(solve())

Submission status: Accepted

Solution code:
n=input()
s=input()
if s.count("B") < s.count("R"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n=int(input())
s=list(input())
#print(n)

ans=0
for i in range(n):
  if s[i]=="R":
    ans+=1
  else:
    ans-=1

if ans>0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n=int(input())
s=input()
r=0
b=0

for x in range (0,n):
  if s[x] == "R":
    r += 1
  else:
    b += 1
    
if r > b:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()
cnt1 = 0
cnt2 = 0
for x in s:
    if x == 'R':
        cnt1 += 1
    else:
        cnt2 += 1
if cnt1 > cnt2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import math
import copy
from collections import Counter
 
 
 
def nCast(number):
    if type(number)==str:
        return int(number)
    for idx in range(0,len(number)):
        if type(number[idx])==str:
 
            number[idx]=int(number[idx])
        else:
            nCast(number[idx])
    return number
    
def inputArr(w):
    l=list()
    for idx in range(0,w):
        l.append(input())
    return l
def inputArr1(w):
    l=list()
    for idx in range(0,w):
        l.append(input().split())
    return l
 

a=(input())
b=input()


def func():
    if b.count("R")>len(b)/2:
        return "Yes"
    return "No"
 
print(func())

Submission status: Accepted

Solution code:
N = int(input())
s = list(input())
R_count = s.count("R")
B_count = len(s) - R_count
if R_count > B_count:
 print("Yes")
else:
 print("No")

Submission status: Accepted

Solution code:
N = int(input())
S = input()
r_count = S.count('R')
b_count = S.count('B')

if r_count > b_count:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()

from collections import Counter

s = Counter(s)

if s['R'] > s['B']:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N=input()
s=raw_input()

r=0
b=0
for x in s:
	if x=="R":  r+=1
	elif x=="B":  b+=1

print "Yes" if r>b else "No"

Submission status: Accepted

Solution code:
N = int(input())
s = input()
count = 0
for i in range(N):
    if s[i:i+1] == 'R':
        count += 1
    else:
        count -= 1
if count >= 1:
    print('Yes')
elif count <= 0:
    print('No')

Submission status: Accepted

Solution code:
a = int(input())
b = input()
if b.count("R") > a / 2 :
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
S = input()

r = S.count('R')
b = (N - r)

if (r > b):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
input()
s = input()

if s.count('R') > s.count('B'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()

if s.count('R') > N/2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
raw_input()
s=raw_input()
print ['No','Yes'][s.count('B')<s.count('R')]

Submission status: Accepted

Solution code:
N = int(input())
s = list(input())
if s.count('R') - s.count('B') >0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()
Rcount = 0
for i in range(N):
    if s[i] == 'R':
        Rcount += 1
Bcount = N - Rcount
if Rcount > Bcount:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N=int(input())
s=input()
r=s.count("R")
if r>N-r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

n = int(input())
s = input().strip()

r_count = s.count("R")

r = "Yes" if r_count > n - r_count else "No"
print(r)

Submission status: Accepted

Solution code:
N = int(input())

s = str(input())

red = 0
blue = 0

for i in range(N):
    if s[i] == 'R':
        red += 1
    else:
        blue += 1

if red > blue:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

N = int(input())
s=  input()
 
count = 0
for i in range(N):
    if s[i] == "R":
        count += 1
if count*2 > N:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n=int(input())
s=list(input())
print("Yes") if s.count("R")>s.count("B") else print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()

n = 0
for i in s:
	if i == "R":
		n += 1
	else:
		n -= 1

if n > 0:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()
if s.count('R') > s.count('B'):
        print('Yes')
else:
        print('No')

Submission status: Accepted

Solution code:
N =  map(int, (input().split(' ')))
S = str(input())

if S.count('R') > S.count('B'):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s=list(input())
count=0
for i in s:
    if i == 'R':
        count +=1
if count*2 > N :
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
from itertools import groupby

n = int(input())
s = input()
r = s.count("R")
b = s.count("B")
if r > b :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n=int(input())
s=input()
r=0
b=0
for i in range(n):
  if s[i]=="R":
    r+=1
  else:
    b+=1
if r>b:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()
r = s.count('R')
if r > n - r:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())
s = input()
if s.count("R")>s.count("B"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
S = input()

red_count = 0
blue_count = 0
for s in S:
    if s == 'R':
        red_count += 1
    else:
        blue_count += 1

if red_count > blue_count:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = str(input())
B = 0
R = 0
for t in s:
    if t =='B':
        B+=1
    else:
        R +=1
if R >B:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
string = input()

count = string.count('R')

if count>N/2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

N = int(input())
s = input()

if s.count('R') > s.count('B'):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
people = input()

blue = people.count('B')
red = people.count('R')

if red > blue:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n=int(input())
s=input()
bc=0
rc=0
for i in s:
    if i=="B":
        bc+=1
    else:
        rc+=1
if rc>bc:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()
n_R = s.count('R')
if  n_R * 2 > N:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
n = int(input())
s = input()
r = s.count("R")
b = s.count("B")
# 出力
if r>b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
n = int(input())
s = input()
if s.count("R") > s.count("B"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()
print("Yes" if s.count("B")<s.count("R") else "No")

Submission status: Accepted

Solution code:
n = int(input())
S = input()
r_cnt = 0
b_cnt = 0
for s in S:
    if s == "R":
        r_cnt += 1
    else:
        b_cnt += 1
if r_cnt > b_cnt:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = list(input())
if s.count("R") > s.count("B"):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()
import collections as c
count = c.Counter(s)
#print(count)
if count['R'] >count['B']:
	print('Yes')
else:print('No')

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-


def main():
  input()
  s = input()
  r = 0
  b = 0

  for c in s:
    if c == 'R':
      r += 1
    else:
      b += 1

  if r > b:
    print('Yes')
  else:
    print('No')


if __name__ == '__main__':
  main()

Submission status: Accepted

Solution code:
import sys

def main():
    input = sys.stdin.readline
    N = int(input())
    S = [c == 'R' for c in input().strip()]

    if sum(S) > N // 2:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N=int(input())
s=input()
sr=[x for x in s if x == "R"]
print("Yes" if len(sr) > N - len(sr) else "No")

Submission status: Accepted

Solution code:
N = input()
s = input()
if s.count('R') > s.count('B'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())
s = input()
R = 0
B = 0
for i in s:
    if i == "R":
        R += 1
    else:
        B += 1
if R > B:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()
r = s.count("R")
b = s.count("B")
if r>b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()
red = s.count("R")
blue = s.count("B")
if red > blue:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
g = input()
inp = list(input())
if inp.count('R') > inp.count('B'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
S = input()

if S.count('R') > S.count('B'):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()

dic = {'R':0, 'B':0}
for ss in s:
    dic[ss] += 1

if dic['R'] > dic['B']:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = str(input())

R_num = sum([1 for x in s if x == 'R']) 
B_num = sum([1 for x in s if x == 'B'])

if R_num > B_num:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()
red = 0
blue = 0
for i in range(N):
  if s[i] == "R":
    red += 1
  else:
    blue += 1
if red > blue:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()

R_count = 0
for i in range(N):
    if s[i] == 'R':
        R_count += 1

if R_count > N-R_count:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n=input()
s=input()

red=0
blue=0
for i in s:
    if i=="R":
        red+=1
    elif i=="B":
        blue+=1
        
if red>blue:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()
cnt = 0
for str in s:
    if str == "R":
        cnt +=1
Nh = N / 2
if cnt > Nh:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())

S = input()

if sum(1 for x in S if x == 'R') > sum(1 for x in S if x=='B'):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
input()
s=input()
if s.count("R")>s.count("B"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = str(input())
red = s.count('R')
blue = n - red
if red > blue:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()
r=0
b=0
for x in input():
    if x == "R":
        r+=1
    else:b+=1
if r>b:print("Yes")
else: print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = list(input())
print('Yes' if s.count('R') > s.count('B') else 'No')

Submission status: Accepted

Solution code:
n = int(input())
s = list(input())
r = s.count("R")
if n-r < r:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
Str = input()
num = 0
for s in Str:
	if s == 'R':
		num += 1
if N - 2*num < 0:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
def main():
    n = input()
    S = input()
    cnt_r = 0
    cnt_b = 0
    for s in S:
        if s == 'R':
            cnt_r += 1
        elif s == 'B':
            cnt_b += 1
    if cnt_r > cnt_b:
        print('Yes')
    else:
        print('No')

main()

Submission status: Accepted

Solution code:
input()
S=input()
print("Yes" if S.count("R") > S.count("B") else "No")