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 = input()
R = len([e for e in s if e == 'R'])
B = len(s) - R
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 s:
    if i == 'R':
        r += 1
    elif i == 'B':
        b +=1
if r > b:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# cook your dish here
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=0
for i in range(n):
    if s[i]=='R':
        r+=1
if r>n-r:
    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):
    nb = len(list(filter(lambda c:c=='B', s)))
    ans = YES if N - nb > nb else NO
    print(ans)
    return


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_list=list(input())

R=0
B=0

for n in range(N):
  if S_list[n]=='R':
    R+=1
  elif S_list[n]=='B':
    B+=1

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

Submission status: Accepted

Solution code:
print('YNeos'[int(input())/2>=input().count('R')::2])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
print('Yes'if int(input())/2<input().count('R')else'No')

Submission status: Accepted

Solution code:
n = int(input())
s = input()
if s.count("R") > n - s.count("R"):
  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:
def main():
    import collections
    n = input()
    s = input()
    count = collections.Counter(s)
    if count["R"] > count["B"]:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

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=int(input())//2
print('Yes' if len(input().replace('B',''))>n 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()
red = 0
for c in S:
    if c == 'R': red += 1
if red > N / 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**7)
INF = 10 ** 18
MOD = 10 ** 9 + 7
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x) - 1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def II(): return int(sys.stdin.readline())
def SI(): return input()


def main():
    N = II()
    s = SI()
    if s.count('R') > s.count('B'):
        ans = 'Yes'
    else:
        ans = 'No'
    return ans

print(main())

Submission status: Accepted

Solution code:
n=int(input())
s=input()
r=s.count("R")
if 2*r>n:
  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())
ret = 0
for i in input():
  if i == 'R':
    ret += 1
  else:
    ret -= 1
if ret > 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

red_counter = 0
blue_counter = 0
for i in range(N):
    if s[i] == 'R':
        red_counter += 1
    else:
        blue_counter += 1
        
if red_counter > blue_counter:
    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:
# coding: utf-8
N = int(input())
s = input()
B = s.count("B")

if N - B > 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()
r = s.count("R")
b = s.count("B")
if r > b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
_ = input()
s = input()
print("Yes" if s.count("R")>s.count("B") else "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()
red = 0
blue = 0
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=list(input())
red_cnt=0
for s in S:
    if s=="R":
        red_cnt+=1
blue_cnt=n-red_cnt
print("Yes") if blue_cnt<red_cnt 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()
if s.count("R") > s.count("B"):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:

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


main()

Submission status: Accepted

Solution code:
N = int(input())

s = input()

rans, bans = 0, 0

for i in range(len(s)):
  if s[i] == 'R':
    rans += 1
  else:
    bans += 1

if rans > bans:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N = int(input())

s = input()

rans = 0
bans = 0
for i in range(len(s)):
  if s[i] == 'R':
    rans += 1
  else:
    bans += 1

if rans > bans:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
print('YNeos'[int(input())<=input().count('B')*2::2])

Submission status: Accepted

Solution code:
print('YNeos'[int(input())>=input().count('R')*2::2])

Submission status: Accepted

Solution code:
_ = int(input())

caps = input()

num_red = caps.count('R')
num_blue = caps.count('B')

if num_red > num_blue:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
num = input()
data = list(input())
R = 0
B = 0
for d in data:
  if d == 'R':
    R += 1
  else:
    B += 1
if R > B:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 30 21:21:32 2019

@author: Yamazaki Kenichi
"""

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();s=input();
print("Yes" if s.count("R") > s.count("B") else "No")

Submission status: Accepted

Solution code:
N =int(input())
s = input()
r = 0
b = 0
for i in range(N):
    if s[i:i+1] == "R":
        r += 1
    
    elif s[i:i+1] == "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 "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())
s=input()
n=0
for char in s:
     if char=='R':
         n+=1
     else:
         n+=0
if N/2<n:
    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 = input()
s = input()
print("Yes" if s.count('R') - s.count('B') > 0 else "No")

Submission status: Accepted

Solution code:
input1 = input()
input2 = input()
if int(input1) / 2 < input2.count("R"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N = input()
s = input()
 
N1 = int(N)/2
 
import math
N1= math.ceil(N1)
N1= int(N1)-1
 
list_s = list(s)
list_s.sort()
X = list_s[N1]
 
if X=='R':
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

for i in range(0, n):
    if s[i] == "R":
        r += 1

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

Submission status: Accepted

Solution code:
num = input()
str = input()

r_num = str.count("R")
b_num = str.count("B")
if r_num > b_num:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
# _*_ coding:utf-8 _*_
#  Atcoder_ExaWizards2019_Contest-B
#  TODO https://exawizards2019.contest.atcoder.jp/tasks/exawizards2019_b

def solveProblem(peoples,retuString):
	redOrBlueList = list()
	for i in range(0,peoples,+1):
		if retuString[i] == 'R':
			redOrBlueList.append(1)
		elif retuString[i] == 'B':
			redOrBlueList.append(-1)
	if sum(redOrBlueList) > 0:
		answer = "Yes"
	else:
		answer = "No"
	return answer


if __name__ == '__main__':
	N = int(input().strip())
	s = input().strip()
	solution = solveProblem(N,s)
	print("{}".format(solution))

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()
R = 0
for i in range(N):
  if s[i]=='R':
    R = R + 1;
if R > N/2:
  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()
brue=s.count("B")

red=s.count("R")
if red>brue:
 print("Yes")
else:
 print("No")

Submission status: Accepted

Solution code:
a = input()
b = input()
if b.count('R') > b.count('B'):
    print('Yes')
elif b.count('R') < b.count('B'):
    print('No')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def red_or_blue(N, s):
  s_1 = [x for x in s]
  l_r = s_1.count('R')
  l_b = s_1.count('B')
  if l_r > l_b:
    return 'Yes'
  else:
    return 'No'

i = [input() for i in range(2)]
N = i[0]
s = i[1]
print(red_or_blue(N, s))

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N = input()
P = input().strip()
r = 0
b = 0
for p in P:
    if(p == "R"):
        r += 1
    else:
        b += 1
ans = "No"
if(r > b):
    ans = "Yes"
print(ans)

Submission status: Accepted

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

r=0
b=0

for i in s:
    if 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())
hat = input()
r = 0
for i in hat:
    if i == "R":
        r += 1
if r > N/2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a = int(input())
b = str(input())
c = []
for i in b:
    c += i
if c.count('R') > c.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()
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())
a=input()
A = [a[i:i+1] for i in range(N)]
if A.count("R") > A.count("B"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/exawizards2019/tasks/exawizards2019_b

import itertools
import collections
import bisect

def main():
    N = int(input())
    S = list(input())
    print("Yes" if S.count('R') > S.count('B') else "No")

if __name__ == '__main__':
    main()

Submission status: Accepted

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

c_red = 0
c_blue = 0

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

if c_red > c_blue:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys
from collections import defaultdict
stdin = sys.stdin
read_int = lambda : list(map(int,stdin.readline().split()))
read_str = lambda : stdin.readline().rstrip()

N = read_int()[0]
S = read_str()
d = defaultdict(int)

for cap in S:
    d[cap] += 1
d = dict(d)

if __name__ == "__main__":
    if d['R'] > d['B']:
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
import sys
from pprint import pprint

def solve(N, people):
    n_red = 0
    n_blue = 0
    for i in xrange(len(people)):
        #print i, people[i]
        if people[i] == "R":
            n_red += 1
        elif people[i] == "B":
            n_blue += 1
        else:
            print "something wrong!"

    if n_red > n_blue:
        return "Yes"
    else:
        return "No"

if __name__ == '__main__':

    N = sys.stdin.readline().strip()
    people = sys.stdin.readline().strip()
    ans = solve(int(N), people)
    print ans

Submission status: Accepted

Solution code:
n = input()
b = 0
rc = 0
for x in input().strip():
    if x == "R":
        rc += 1
    else:
        b += 1
if rc > 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:
# -*- coding: utf-8 -*-
import sys
# ----------------------------------------------------------------
# Direct Input

N = int(input())
S = input()

res = 0

for i in S:
    if i == 'R':
        res += 1
    else:
        res -= 1
if res > 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:
import time
import sys
import time
fl,sl=[input() for i in range(2)]
red = "R"
blue = "B"
numred = sl.count(red)
numblue = sl.count(blue)
if int(numred) > int(numblue):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
input_num = int(input())
input_color = input()
r_num = 0
b_num = 0
for color in input_color:
    if color == "R":
        r_num += 1
    if color == "B":
        b_num += 1
if r_num > b_num:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
n=int(input())
s=input().count("R")
print("YNeos"[s<=n-s::2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
s = input()
print("YNeos"[s.count("R") <= s.count("B")::2])

Submission status: Accepted

Solution code:
num = int(input())
cap = input()
R=0
B=0
for a in range(num):
    if(cap[a]=='R'):
      R+=1
    elif(cap[a]=='B'):
      B+=1

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
N = input()
S = input()
red, blue = 0, 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())

k = input()
p = 0
r_count = 0
b_count = 0
for l in range(n):
    if str(k[p]) == "R":
        r_count += 1
        p += 1
    elif str(k[p]) == "B":
        b_count += 1
        p += 1
    else:
        pass

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

Submission status: Accepted

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

r = []
b = []
for _ in s:
    if _ == 'R':
        r.append(_)
    else:
        b.append(_)

if len(r) > len(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()

red = 0
blue = 0
for _ in s:
  if _ == "B":
    blue += 1
  else:
    red += 1

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

Submission status: Accepted

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

red = 0
blue = 0
for c in s:
  if c == "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 = s.count("R")
B = s.count("B")
#print(R, 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()) # number of people
s = input() # strings of colors
Red = s.count('R')
Blue = len(s) - Red
if Red > Blue:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = input()
s = input()
rn = 0
bn = 0
for i in range(len(s)):
    if s[i] == "R":
        rn += 1
    else:
        bn += 1

if rn > bn:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()
r = 0
b = 0
for i in range(N):
  code = s[i]
  if code == '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 = len(s) - r
if r > 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 = list(input())

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
N = int(input())

s = input()
rcount = 0
for c in s:
    if c == 'R':
        rcount += 1
bcount = N - rcount
if rcount > bcount:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = input()
iro = input()
lis = list(iro)

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

Submission status: Accepted

Solution code:
N=int(input())
hats=input()
 
red=0
for hat in hats:
   if hat=="R":
      red=red+1
 
if red>N-red:
   print("Yes")
else:
   print("No")

Submission status: Accepted

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

num_r = s.count('R')
num_b = s.count('B')

if num_r > num_b:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# encoding: utf-8
import sys
input = sys.stdin.readline

N = int(input())
S = input()

cnt = 0
for i in range(N):
    if S[i] == 'R': cnt += 1
    else: cnt -= 1

if cnt > 0: print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
N = input()
L = input()
R_list = [s for s in L if 'R' in s]
B_list = [s for s in L if 'B' in s]
if len(R_list) >len(B_list):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# B - Red or Blue

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

cntR = 0
cntB = 0

for i in s :
    if i == "R" :
        cntR += 1
    else :
        cntB += 1

if cntR > cntB :
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
num = int(input())
s_list = list(input())

rc = 0
bc = 0
for i in range(num):
    if s_list[i] == "R":
        rc += 1
    else:
        bc += 1

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

man = int(input())
s = str(input())

if 1 >= man and man <= 100:
    print('No')
    sys.exit()

str = s[0:man]

r_val = str.count('R')
b_val = str.count('B')

if r_val > b_val:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    S = input()
    R = 0
    B = 0
    for i in range(0,N):
        if S[i] == "R":
            R = R + 1
        else:
            B = B + 1
        if R > N/2:
            print("Yes")
            return
        elif B > N/2:
            print("No")
            return
    print("No")
    
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n=int(input())-1
print("Yes"if sorted(input())[n//2]=="R" else"No")

Submission status: Accepted

Solution code:
cnt = int(input())

color = input()

r_c = 0
b_c = 0

for i in range(cnt):
    if color[i] == 'R':
        r_c += 1
    elif color[i] == 'B':
        b_c += 1

if r_c > b_c:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
s = input()
R_count = 0
B_count = 0
for si in s:
    if si == "R":
        R_count += 1
    else:
        B_count += 1
if R_count > B_count:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

r = 0

for i in range(n):
	if s[i] == 'R':
		r += 1

if r > n - r:
	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:
N = int(input())
s = input()

B = R = 0
for c in s:
    if c=='B':
        B += 1
    elif c=='R':
        R += 1

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

Submission status: Accepted

Solution code:
ans = [None, None]
red = 0
blue = 0

ans[0] = int(input())
ans[1] = input()

for j in range(ans[0]):
   if ans[1][j] == 'R':
      red +=1
   else:
      blue += 1 
if red <= blue:
   print('No')
else:
   print('Yes')

Submission status: Accepted

Solution code:
_ = input()
input_string = input()

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

exit(0)

Submission status: Accepted

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

n = input()
s = input()

nr = s.count("R")
nb = s.count("B")

if nr > nb:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
num = int(input())
col = input()
r = col.count("R")
b = num - r
if r > b :
    ans = "Yes"
else :
    ans = "No"
print (ans)

Submission status: Accepted

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

h = N//2
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()

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

Submission status: Accepted

Solution code:
N = int(input())
s = str(input())
while len(s) != N:
    pass

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

Submission status: Accepted

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

a = s.count('R')

if a*2 > N:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
i = int(input())
str = input()
r_count = 0

for color in str:
    if color == 'R':
        r_count+=1

if r_count * 2 > i:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N=int(input())
x=0
y=0
s=input()

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


if x>y:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

cr = 0
cb = 0
for i in range(n):
    if s[i] == 'R':
        cr += 1
    else:
        cb += 1

if cr > cb:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
stringi = input()
t = 0
r = 0
R = "R"
B = "B"
b= 0
while(t <int(N)):
   if(stringi[t] == R):
      r+=1
   else:
      b+=1
   t+=1
if(r>b):
   print("Yes")
else:
   print("No")

Submission status: Accepted

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

import sys

def main():
    N = int(sys.stdin.readline().strip())
    s = sys.stdin.readline().strip()
    R = s.count('R')
    B = s.count('B')
    if R > B:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
num = int(input())
str = input()
char_list = list(str)
counter_b = 0
counter_r = 0
for item in char_list:
    if item == '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()

red=int(0)
blue=int(0)

for i in range(N):
        if s[i]=="R":
                red+=1
        elif s[i]=="B":
                blue+=1



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

Submission status: Accepted

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

from sys import stdin

def load():
    n = stdin.readline()
    return n

n = int(load())
s = load()

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

if red > n/2.0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a = int(input().strip())
b = list(input().strip())
r_count = 0
b_count = 0

for i in range(a):
     if b[i] == 'R':
          r_count += 1
     else:
          b_count +=1

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

Submission status: Accepted

Solution code:
N = int(input())
s = str(input())
red = 0
blue = 0
for si in s:
    if si == 'R':
        red += 1
    if si == 'B':
        blue += 1
if red > blue:
    print("Yes")
if red <= blue:
    print("No")

Submission status: Accepted

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

r_count = 0
for s in S:
    if s == 'R':
        r_count += 1

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

Submission status: Accepted

Solution code:
N = int(input())
S = list(input())
R_count = 0
B_count = 0
for i in S:
    if(i == "R"):
        R_count += 1
    else:
        B_count += 1
if(R_count > B_count):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
input1 = input()
N = int(input1)
input2 = input()
S = list(input2)
 
R = 0
B = 0
h = 'No'
 
for i in range(N):
  if S[i] == 'R':
    R += 1
  else:
    B += 1
  
if R > B:
  h = 'Yes'

print(h)

Submission status: Accepted

Solution code:
A = int(input())
B = list(input())

count_RED = 0
for i in range (0, A):
    if B[i] == "R":
        count_RED += 1
count_BLUE = A - count_RED
if (count_RED > count_BLUE):
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

S = list(input())

R = 0

for s in S:
    if s =='R':
        R+=1

if R*2 > N:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())
array = list(input())
array.sort()
length = len(array)
if(length%2==0):
    if(array[int(length/2)-1]=='B'):
        print("No")
    else:
        print("Yes")
else:
    if(array[int(length/2)]=='B'):
        print("No")
    else:
        print("Yes")

Submission status: Accepted

Solution code:

n = int(input())
s = input()

cnt = s.count("R")

if cnt > n - cnt:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
S = input()
r = 0
for i in range(len(S)):
	if S[i] == "R":
		r+=1

if r > len(S) // 2:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
ninnzuu = int(input().rstrip())
mojiretsu = list(input())

count_R = 0
for i in mojiretsu:
	if (i=="R"):
		count_R+=1

if (count_R*2>ninnzuu):
	print("Yes")
else:
	print("No")