Felix6326727/beyond-accuracy-code-comprehension huggingface dataset:
def run_length_encoding(A: list)->list:
    '''A をランレングス圧縮します。
    '''
    res = []
    if len(A) == 0:
        return res

    pre = A[0]
    cnt = 0
    for a in A:
        if a == pre:
            cnt += 1
        else:
            res.append((pre, cnt))
            pre = a
            cnt = 1
    else:
        res.append((pre, cnt))

    return res


def mod_pow(a: int, n: int, mod: int)->int:
    '''a の n 乗を計算します。
    '''
    res = 1
    while n > 0:
        if n & 1:
            res = (res * a) % mod
        a = (a * a) % mod
        n >>= 1
    return res


def xor_partitioning(N: int, A: list)->int:
    MOD = 10**9 + 7

    B = [0] * (N+1)
    for n, a in enumerate(A):
        B[n+1] = a ^ B[n]

    if B[-1] == 0:
        X = set(B)
    else:
        X = set([B[-1]])

    res = 1
    # dp[i][0] = i マス目まで処理した時に現在こまが置かれているますに 0 が書かれている
    # dp[i][1] = i マス目まで処理した時に現在こまが置かれているマスに X が書かれている。
    dp = [[0, 0] for _ in range(N+1)]

    for x in X:
        enc = run_length_encoding([b for b in B if b == 0 or b == x])
        dp[0] = [1, 0]

        for i, (b, v) in enumerate(enc):
            coeff = mod_pow(2, v-2, MOD)

            if b == 0 and x == 0:
                dp[i+1][0] = ((dp[i][0] + dp[i][1]) * coeff) % MOD
                dp[i+1][1] = ((dp[i][1] + dp[i][0]) * coeff) % MOD
            elif b == 0:
                dp[i+1][0] = (dp[i][0] + dp[i][1] * v) % MOD
                dp[i+1][1] = dp[i][1]
            elif b == x:
                dp[i+1][0] = dp[i][0]
                dp[i+1][1] = (dp[i][1] + dp[i][0] * v) % MOD
            else:
                dp[i+1][0] = dp[i][0]
                dp[i+1][1] = dp[i][1]

        res = (res + dp[len(enc)][0] - 1) % MOD

    return res


if __name__ == "__main__":
    N = int(input())
    A = [int(s) for s in input().split()]

    ans = xor_partitioning(N, A)
    print(ans)


# Example run
# Input:
8
-55009
# Output:
71
N=int(input())
A=list(map(int,input().split()))
mod=10**9+7

data=[0]
for i in range(N):
    data.append(data[-1]^A[i])

if data[-1]==0:
    ans=0
    zero=[int(data[i]==0) for i in range(N+1)]
    for i in range(1,N+1):
        zero[i]+=zero[i-1]

    val={}
    for i in range(N+1):
        if data[i]!=0:
            if data[i] not in val:
                val[data[i]]=[]
            val[data[i]].append(i)

    for v in val:
        B=0
        W=1
        for i in range(len(val[v])):
            j=val[v][i]
            if i!=len(val[v])-1:
                B+=W
                W+=B*(zero[val[v][i+1]]-zero[j])
                B%=mod;W%=mod
            else:
                B+=W
                B%=mod
        ans+=B
        ans%=mod

    n=data.count(0)
    ans+=pow(2,n-2,mod)
    ans%=mod
    print(ans)
else:
    val=data[-1]
    que=[0]*2**20
    dp=[0]*(N+1)
    dp[0]=1
    que[0]=1
    for i in range(1,N+1):
        j=data[i]
        dp[i]=que[j^val]
        que[data[i]]+=dp[i]
        que[data[i]]%=mod

    print(dp[N]%mod)

# Example run
# Input:
1
-816653
# Output:
1
n = int(input())
a = list(map(int, input().split()))
max_a = 2 ** 20
MOD = 10 ** 9 + 7

ru = [0] * (n + 1)
for i in range(n):
    ru[i + 1] = ru[i] ^ a[i]


if ru[-1] != 0:
    # 0, ru[-1], 0, ru[-1], 0, ..., ru[-1]
    dp = [0] * (max_a)
    dp[0] = 1
    tot_ex0 = 0
    for i in range(n):
        if i == n - 1:
            print(dp[0])
            exit()
        if ru[i + 1] == 0:
            dp[0] += tot_ex0
            dp[0] %= MOD
        elif ru[i + 1] == ru[-1]:
            dp[ru[i + 1]] += dp[0]
            dp[ru[i + 1]] %= MOD
            tot_ex0 += dp[0]
            tot_ex0 %= MOD
else:
    # 0, x, 0, x, 0, x, ..., 0 (x != 0)
    dp = [0] * max_a
    dq = [1] * max_a
    set_evaled = [0] * max_a
    times = 0
    ans = 0
    for i in range(n):
        if i == n - 1:
            ans = sum(dp)
            break
        elif ru[i + 1] == 0:
            # これを遅延評価する
            # for j in range(max_a):
            #     dq[j] += dp[j]
            times += 1
        else:
            dq[ru[i + 1]] += (times - set_evaled[ru[i + 1]]) * dp[ru[i + 1]]
            dq[ru[i + 1]] %= MOD
            set_evaled[ru[i + 1]] = times
            dp[ru[i + 1]] += dq[ru[i + 1]]
            dp[ru[i + 1]] %= MOD
    # 0, 0, 0, 0, 0, 0, ..., 0
    cnt_0 = sum([1 for i in range(n) if ru[i + 1] == 0])
    ans = (ans + pow(2, cnt_0 - 1, MOD)) % MOD
    print(ans)

# Example run
# Input:
0
505288784
# Output:
500000004
N=int(input())
A=list(map(int,input().split()))

mod=10**9+7

S=[A[0]]
for i in range(1,N):
    S.append(S[-1]^A[i])

if S[-1]==0:
    sss=max(S)
    data=[[] for i in range(sss+1)]

    for i in range(N):
        data[S[i]].append(i)

    count_0=[0]*N
    for u in data[0]:
        count_0[u]+=1
    for i in range(1,N):
        count_0[i]+=count_0[i-1]
    
    ans=pow(2,len(data[0])-1,mod)

    for i in range(1,sss+1):
        if data[i]:
            h=data[i]
            l=len(h)
            dp=[1,1]
            for j in range(1,l):
                d=[0,0]
                num=count_0[h[j]]-count_0[h[j-1]]
                d[0]=(dp[0]+dp[1]*num)%mod
                d[1]=(dp[0]+dp[1]+dp[1]*num)%mod
                dp=d
            ans=(ans+dp[1])%mod

else:
    qqq=S[-1]
    h=[]
    count_0=[0]*N
    for i in range(N):
        if S[i]==qqq:
            h.append(i)
        elif S[i]==0:
            count_0[i]=1

    for i in range(1,N):
        count_0[i]+=count_0[i-1]
    
    ans=0

    l=len(h)
    dp=[1,1]
    for j in range(1,l):
        d=[0,0]
        num=count_0[h[j]]-count_0[h[j-1]]
        d[0]=(dp[0]+dp[1]*num)%mod
        d[1]=(dp[0]+dp[1]+dp[1]*num)%mod
        dp=d
    ans=(ans+dp[0])%mod
print(ans)        

# Example run
# Input:
-10
13637464
# Output:
1
N=int(input())
mod=10**9+7
X=[-1]*N
for i,a in enumerate(map(int,input().split())):
    if i==0:
        X[0]=a
    else:
        X[i]=X[i-1]^a
if X[-1]>0:
    x=X[-1]
    dp0=1
    dp1=0
    zero=0
    for i in range(N):
        if X[i]==x:
            dp0=(dp0+dp1*zero)%mod
            zero=0
            dp1=(dp1+dp0)%mod
        elif X[i]==0:
            zero+=1
        
    print(dp0)
    exit()
from collections import defaultdict
dp0=defaultdict(lambda :1)
dp1=defaultdict(int)
zero=defaultdict(int)
zeronow=0
for i in range(N-1):
    x=X[i]
    if x>0:
        dp0[x]=(dp0[x]+dp1[x]*(zeronow-zero[x]))%mod
        zero[x]=zeronow
        dp1[x]=(dp1[x]+dp0[x])%mod
    elif x==0:
        zeronow+=1

print(sum(dp1.values())+pow(2,zeronow,mod))

# Example run
# Input:
3185105
629110165
# Output:
2
N=int(input())
A=[int(i) for i in input().split()]
B=[A[0]]
mod=10**9+7
for i in range(1,N):
  B.append(B[-1]^A[i])
#print(B)
if B[-1]:
  table=[]
  for i in range(N):
    if B[i]==B[-1]:
      if table:
        if table[-1][0]==1:
          table[-1]=(1,table[-1][1]+1)
        else:
          table.append((1,1))
      else:
        table.append((1,1))
    elif B[i]==0:
      if table:
        if table[-1][0]==0:
          table[-1]=(0,table[-1][1]+1)
        else:
          table.append((0,1))
      else:
        table.append((0,1))
  l=len(table)
  dp=[[0]*2 for i in range(l+1)]
  dp[0][0]=1
  for i in range(l):
    if table[i][0]==1:
      dp[i+1][0]=dp[i][0]
      dp[i+1][1]=(dp[i][1]+dp[i][0]*table[i][1])%mod
    else:
      dp[i+1][1]=dp[i][1]
      dp[i+1][0]=(dp[i][0]+dp[i][1]*table[i][1])%mod
  #print(dp)
  #print(table)
  print(dp[l-1][0]) 
else:
  table=[[] for i in range(2**20)]
  s=set()
  ans=1/2
  for i in range(N):
    if B[i]!=0:
      s.add(B[i])
      if table[B[i]]:
        if table[B[i]][-1][0]==1:
          table[B[i]][-1]=(1,table[B[i]][-1][1]+1)
        else:
          table[B[i]].append((1,1))
      else:
        table[B[i]].append((1,1))
    elif B[i]==0:
      ans*=2
      for k in s:
        if table[k]:
          if table[k][-1][0]==0:
            table[k][-1]=(0,table[k][-1][1]+1)
          else:
            table[k].append((0,1))
        else:
          table[k].append((0,1))
  ans=int(ans)
  for k in s:
    l=len(table[k])
    dp=[[0]*2 for i in range(l+1)]
    dp[0][0]=1
    for i in range(l):
      if table[k][i][0]==1:
        dp[i+1][0]=dp[i][0]
        dp[i+1][1]=(dp[i][1]+dp[i][0]*table[k][i][1])%mod
      else:
        dp[i+1][1]=dp[i][1]
        dp[i+1][0]=(dp[i][0]+dp[i][1]*table[k][i][1])%mod
    ans=(ans+dp[l-1][1])%mod
  #print(table)
  print(ans%mod)
  

# Example run
# Input:
-54634663
3615919
# Output:
1
N = int(input())
a_list = list(map(int, input().split()))
LARGE = 10**9 + 7


# cumsum
b_list = [0] * N
b = 0

for i in range(N):
    a = a_list[i]
    b = a ^ b
    b_list[i] = b

v_all_dict = dict()
for b in b_list:
    v_all_dict[b] = [0, 0, 1]

zeros = 0

for i in range(N):
    b = b_list[i]
    
    t = v_all_dict[b][0]
    
    # new b
    if t < zeros:
        v_all_dict[b][2] = (v_all_dict[b][2] + v_all_dict[b][1] * (zeros - t)) % LARGE
        v_all_dict[b][0] = zeros
    
    # up
    v_all_dict[b][1] = (v_all_dict[b][1] + v_all_dict[b][2]) % LARGE
    
    # zeros
    if b == 0:
        zeros += 1
    
if b_list[-1] == 0:
    res = 0
    for v in v_all_dict.keys():
        if v != 0:
            res = (res + v_all_dict[v][1]) % LARGE
        else:
            res = (res + 2 ** (zeros - 1) - 1) % LARGE
    res += 1
else:
    print(1)


# Example run
# Input:
1
5
# Output:
1
# input
N = int(input())
A = list(map(int, input().split()))

MOD = 10 ** 9 + 7

dp = [[None for _ in range(N)] for __ in range(N+1)]
dp[0] = [0 for _ in range(N)]

def xors(i, j):
    xor = A[i-1]
    for k in range(i,j):
        xor ^= A[k]
    return xor


for i in range(1, N+1):
    dp[i][0] = 1
    for j in range(1,i):
        dp[i][j] = 0
        for k in range(j):
            if xors(k+1, j) == xors(j+1, i):
                dp[i][j] += dp[j][k]

print(sum(dp[-1]) % MOD)


# Example run
# Input:
1
1631
# Output:
1
from functools import lru_cache
N=int(input())
a=tuple([int(i) for i in input().split(" ")])

def beauty(l):
    retval=0
    for i in l:
        retval=retval^i
    return retval


@lru_cache()
def is_able(l,k):
    retval=0
    if beauty(l)==k:
        retval+=1
    for i in range(1,len(l)):
        if beauty(l[:i:])!=k:
            continue
        else:
            retval+= is_able(l[i::],k)
    return retval

retval=0
for i in range(21):
    retval+=is_able(a,i)
print(retval%(10**9+7))


# Example run
# Input:
-58743
-207
# Output:
0
n = int(input())
a = input()

if(n >= 3200):
  print(a)
else:
  print('red')

# Example run
# Input:
5101803
#("Ua
# Output:
#("Ua
if __name__ == '__main__':
    a = int(input())
    s = input()
    if a >= 3200:
        print(s)
    else :
        print('red')

# Example run
# Input:
242419
2Ow0r-95
# Output:
2Ow0r-95
x = int(input())
s = input()
if x < 3200:
  print('red')
else:
  print(s)

# Example run
# Input:
3563
79\>PK$]
# Output:
79\>PK$]
a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print("red")


# Example run
# Input:
-667820051
BL;sshZj
# Output:
red
n = (int)(input())
s = input()
if(n>=3200):
  print(s)
else:
  print("red")


# Example run
# Input:
542366274
1,A
# Output:
1,A
a = int(input())
s = input()
print(s if a>=3200 else "red")

# Example run
# Input:
713362851
\vyk`dM4Y
# Output:
\vyk`dM4Y
a = int(input())
s = str(input())
if a >= 3200:
    print(s)
elif a < 3200:
    print("red")

# Example run
# Input:
-31
6ej=k^S/8
# Output:
red
a = int(input())
s = input()
if a >= 3200:
  print(s)
else:
  print("red")

# Example run
# Input:
-147
bTc>{cUl
# Output:
red
a = int(input())
s = input()

if 3200 <= a:
    print(s)
else:
    print("red")


# Example run
# Input:
981571
1^}e^'y
# Output:
1^}e^'y
a=int(input())
print(input() if a>=3200 else 'red')

# Example run
# Input:
161887817
)c6@(1bul
# Output:
)c6@(1bul
a = int(input())
s = input()

if a >= 3200:
    print(s)
else:
    print("red")

# Example run
# Input:
-11989124
=C>#:pjLk
# Output:
red
a = int(input())
s = input()

if a >= 3200:
    print(s)
else:
    print("red")

# Example run
# Input:
1593280440
9,h&KO
# Output:
9,h&KO
a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print("red")

# Example run
# Input:
-3471
xs$
# Output:
red
a=int(input())
s=input()
print(s if a>=3200 else "red")

# Example run
# Input:
-61
f'_no
# Output:
red
a = int(input())
s = input()

if a >= 3200:
    print(s)
else:
    print('red')


# Example run
# Input:
986892
1dThx~K
# Output:
1dThx~K
a = int(input())
s = input()

if a >= 3200:
  print(s)
else:
  print("red")

# Example run
# Input:
0
A=|#RS`
# Output:
red
a = int(input())
s = input()
print(s if a >= 3200 else "red")

# Example run
# Input:
2081
/X&w)1
# Output:
red
# coding:utf-8
a = int(input())
s = input()

if a >= 3200:
    print(s)
else:
    print('red')

# Example run
# Input:
-133790981
PS^d!|
# Output:
red
a=int(input())
s=input()
if(a<3200):
    print('red')
else:
    print(s)

# Example run
# Input:
-41270
an8/8]u
# Output:
red
a = int(input())
s = input()

if a >= 3200:
  print(s)
else:
  print('red')

# Example run
# Input:
-9
$oII~?i
# Output:
red
a = int(input())
s = input()

if 3200 <= a:
    print(s)
else:
    print("red")

# Example run
# Input:
20735611
0ni+[
# Output:
0ni+[
a=int(input())
s=input()
if a >= 3200:
    print(s)
else:
    print("red")

# Example run
# Input:
60
n-T>!
# Output:
red
def main(): 
    a = int(input())
    s = input()

    print(s if a >= 3200 else 'red')

if __name__ == "__main__":
    main() 

# Example run
# Input:
15927431
v>z%!
# Output:
v>z%!
a = int(input())
s = input()
print(s) if a >= 3200 else print('red')


# Example run
# Input:
637975
g#.
# Output:
g#.
a = int(input())
s = str(input())
if a>=3200:
    print(s)
else:
    print('red')

# Example run
# Input:
3770
O5T
# Output:
O5T
a = int(input())
s = input()
if a < 3200:
    print("red")
else:
    print(s)

# Example run
# Input:
19
91W<+
# Output:
red
a = int(input())
s = input()

if 3200 <= a:
    print(s)
else:
    print('red')

# Example run
# Input:
-37
vY;
# Output:
red
a=int(input())
s=input()
if a>=3200:
  print(s)
else:
  print('red')

# Example run
# Input:
-420
[BDV:
# Output:
red
a=int(input())
s=input()

if a>=3200:
    print(s)
else:
    print('red')

# Example run
# Input:
-3433
@c!;Qz
# Output:
red
a = int(input())
s = input()

if a < 3200:
    print('red')
else:
    print(s)

# Example run
# Input:
505
/5T
# Output:
red
a=int(input())
b=input()
if a>=3200:
    print(b)
else:
    print("red") 

# Example run
# Input:
0
A9?b;/#NX
# Output:
red
a = int(input())
s = input()

if a < 3200:
    print("red")
else:
    print(s)

# Example run
# Input:
5182
}}x
# Output:
}}x
a = int(input())
S = input()

if a >= 3200:
	print(S)
else:
	print("red")


# Example run
# Input:
-255155
Br7-
# Output:
red
a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print("red")

# Example run
# Input:
-171
V$iTb
# Output:
red
a=int(input())
b=input()
if a<3200:
    print('red')
else:
    print(b)

# Example run
# Input:
-977290717
Zl&=}<M
# Output:
red
a = int(input())
s = input()

if a >=3200:
    print(s)
if a <3200:
    print('red')

# Example run
# Input:
1038302991
~.yFvb
# Output:
~.yFvb
a = int(input())

s = input()

if a >= 3200:
    print (s)
else:
    print ("red")


# Example run
# Input:
2147483647
J6@Gy
# Output:
J6@Gy
a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print('red')


# Example run
# Input:
-11909
MFrWF
# Output:
red
a = int(input())
s = input()
if a>=3200:
    print(s)
else:
    print('red')

# Example run
# Input:
7
C>S_wWC
# Output:
red
a = int(input())

s = input()

if a>=3200:
    print(s)
else:
    print('red')

# Example run
# Input:
7395
UC.SD+
# Output:
UC.SD+
# -*- coding: utf-8 -*-
a = int(input())
s = input()

if a >= 3200:
    print(s)
else:
    print('red')


# Example run
# Input:
1049999
dhxed)jy
# Output:
dhxed)jy
N = int(input())
A = list(map(int, input().split()))

ans = 1 / sum(1 / a for a in A)
print(ans)



# Example run
# Input:
108901
242419
# Output:
242418.99999999997
a=int(input())
s=input()
if a>=3200:
  print(s)
else:
  print("red")

# Example run
# Input:
197766
o`u,N
# Output:
o`u,N
a=int(input())
s=input()
if a>=3200:
    print(s)
else:
    print("red")

# Example run
# Input:
2657144
1)QbseX
# Output:
1)QbseX
a = int(input())
s = input()

if a >= 3200:
  print(s)
else:
  print("red")

# Example run
# Input:
465
`~*[|!
# Output:
red
a=int(input())
s=input()
if a >= 3200:
    print(s)
else:
    print("red")

# Example run
# Input:
-52383
@_0d
# Output:
red
a = int(input())
s = str(input())
if a >= 3200:
  print(s)
else:
  print("red")

# Example run
# Input:
-199292980
%fAakyV$
# Output:
red
a = input()
s = input()

if a >= str(3200):
    print(s)
elif a < str(3200):
    print("red")

# Example run
# Input:
Lj^Y8
abT
# Output:
abT
a=int(input())
s=input()
if a>=3200:
  print(s)
else:
  print("red")

# Example run
# Input:
434797
5J(H
# Output:
5J(H
a=int(input())
s=str(input())
if a>=3200:
    print(s)
else:
    print("red")

# Example run
# Input:
-29588
s8H2
# Output:
red
thres = int(input())
S = input()

if (thres >= 3200):
    print(S)
else:
    print('red')


# Example run
# Input:
10688
B)goR\M]
# Output:
B)goR\M]
a = int(input())
s = input()

if a >= 3200:
    print(s)
else :
    print('red')

# Example run
# Input:
-3
R:/<s%M
# Output:
red
a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print("red")


# Example run
# Input:
7169
seX
# Output:
seX
a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print('red')

# Example run
# Input:
-30
9k0QV_/
# Output:
red
a = int(input())
s = input()
print('red' if a < 3200 else s)

# Example run
# Input:
633744878
Rmpg(K&#
# Output:
Rmpg(K&#
a=int(input())
s=input()
if a>=3200:
    print(s)
else:
    print("red")


# Example run
# Input:
1044
^Y8b
# Output:
red
a = int(input())
s = input()

if a >= 3200:
    print(s)
else:
    print('red')

# Example run
# Input:
27379
1rofZ
# Output:
1rofZ
a = int(input())
s = input()

if a < 3200: print("red")
else: print(s)

# Example run
# Input:
-10841372
F!2eKDu
# Output:
red
a = int(input())
s = input()

if a>=3200:
  print(s)
else:
  print('red')

# Example run
# Input:
-25867257
Sa^
# Output:
red
# input
a = int(input())
s = input()

# check
if a >= 3200:
    print(s)
else:
    print("red")


# Example run
# Input:
-16009
Y?|!V2bB
# Output:
red
a = int(input())
s = input()

if a >= 3200:
    print(s)
else:
    print("red")


# Example run
# Input:
125998
|!V2bBsP
# Output:
|!V2bBsP
def q1():
    a = int(input())
    s = input()
    if a >= 3200:
        print(s)
    else:
        print('red')

if __name__ == '__main__':
    q1()


# Example run
# Input:
-127034
U9|Au
# Output:
red
a=int(input())
s=input()
if a>=3200:
    print(s)
else:
    print('red')

# Example run
# Input:
23349322
fuq._I{;=
# Output:
fuq._I{;=
a=int(input())
s=input()
print("red" if a<3200 else s)

# Example run
# Input:
54
jrHdb
# Output:
red
a = int(input())
s = input()
if a >= 3200:
 	print (s)
else:
   print("red")

# Example run
# Input:
3
2J8Iu
# Output:
red
a = int(input())
s = input()

ans = s

if a < 3200:
    ans = "red"
print(ans)

# Example run
# Input:
2147483647
(wme
# Output:
(wme
a = int(input())
s = input()

if a<3200:
    print("red")
else:
    print(s)

# Example run
# Input:
-2777886
xm-
# Output:
red
a = int(input())
s = input()
print("red" if a < 3200 else s)

# Example run
# Input:
-1219978197
p>)zg
# Output:
red
a=int(input())
s=input()

if a>=3200:
    print(s)
else:
    print("red")

# Example run
# Input:
-58867430
k^S/8NM/
# Output:
red
a=int(input())
s=input()

if a>=3200:
  print(s)
else:
  print('red')

# Example run
# Input:
-84521052
an8/8]u
# Output:
red
a = int(input())
s = input()

if a >= 3200:
  print(s)
else:
  print("red")

# Example run
# Input:
13
bMc
# Output:
red
a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print('red')

# Example run
# Input:
0
$uz
# Output:
red
a=int(input())
s=(input())

if a<3200:
  print("red")
else:
  print(s)

# Example run
# Input:
57223618
m`%X
# Output:
m`%X
a = int(input())
s = input()

if a >= 3200:
  print(s)
else:
  print("red")

# Example run
# Input:
95268824
1xqv_8
# Output:
1xqv_8
a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print("red")

# Example run
# Input:
0
d]lv%m)k
# Output:
red
a = int(input())
s = input()
if a <3200:
   print("red")
else:
   print(s)

# Example run
# Input:
401903957
Vj4;<
# Output:
Vj4;<
a = int(input())
s = str(input())

if a < 3200:
  print("red")
else:
  print(s)

# Example run
# Input:
-81206326
)C[dhxed
# Output:
red
a = int(input())
s = input()
if a >= 3200:
  print(s)
else:
  print('red')


# Example run
# Input:
-1041
rt#
# Output:
red
N = int(input())

if N>=3200:
  print("s")
  
else:
    print("red")

# Example run
# Input:
-145
# Output:
red
a = int(input())
s = input()

if a >=3200:
    print(s)
else:
    print('red')

# Example run
# Input:
-23909
Jq\y`
# Output:
red
a = int(input())
b = input()
if a >= 3200:
  print(b)
else:
  print('red')

# Example run
# Input:
116
MzRwa
# Output:
red
a = int(input())
s = input()

if a >=3200:
	answer = s

else :
	answer = "red"
    
print(answer)



# Example run
# Input:
-3391654
Xg<'3O.+[
# Output:
red
a = int(input())
s = input()

if a >= 3200:
    print(s)
else:
    print("red")

# Example run
# Input:
-3246
Cxm3PV*)
# Output:
red
a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print('red')

# Example run
# Input:
225517319
TK>
# Output:
TK>
# -*- coding: utf-8 -*-

def readInts():
  return [int(s) for s in input().split(" ")]

def main():
  a = readInts()[0]
  s = input()

  if a >= 3200:
    print(s)
  else:
    print("red")

if __name__ == "__main__":
  main()


# Example run
# Input:
1900838388
)VkYVxv>z
# Output:
)VkYVxv>z
a = int(input())
s = input()
if a >= 3200:
  print(s)
else:
  print('red')

# Example run
# Input:
-1
hd](
# Output:
red
a=int(input())
s=input()
print(s if a>=3200 else "red")

# Example run
# Input:
-256478906
8P!9,=^6j
# Output:
red
a = int(input())
s = input()

if a >= 3200:
     print(s)
else:
    print("red")


# Example run
# Input:
1
|}Z&QQ
# Output:
red
a = int(input())						# 5
s = input()		# 文字列の入力  abcdefg...

if a>=3200:
	print(s)
else:
	print("red")



# Example run
# Input:
-7
'7s,N
# Output:
red
a = int(input())
s = input()

if a<3200:
  print("red")
else:
  print(s)

# Example run
# Input:
-1530217
Jq\y`
# Output:
red
a = int(input())
s = input()

if a >= 3200:
    print(s)
else:
    print("red")


# Example run
# Input:
0
8\G<E[
# Output:
red
a = int(input())
s = input()
print(s if a >= 3200 else 'red')

# Example run
# Input:
171431681
gL$*dE
# Output:
gL$*dE
a = int(input())
s = input()
if a >= 3200:
  print("red")
else:
  print(s)


# Example run
# Input:
-194151326
85[tBatc
# Output:
85[tBatc
a = int(input())
s = input()
if a<3200:
  print("red")
elif a>=3200:
  print(s)  

# Example run
# Input:
3356
5)"q
# Output:
5)"q
a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print('red')


# Example run
# Input:
-58663364
o'Vh
# Output:
red
a = int(input())
s = input()
if a >= 3200:
  print("red")
else:
  print(s)

# Example run
# Input:
-16075232
'y*`
# Output:
'y*`
a=int(input())
b=input()
if a>=3200:
  if b=='red':
    print('red')
  else:
    print('pink')
  
else:
  if b=='red':
    print('pink')
  else:
    print('red')


# Example run
# Input:
-562
#9DXV
# Output:
red
a = int(input())
s = input()

print(s if a >= 3200 else 'red')


# Example run
# Input:
47000128
Z=nh8|W4
# Output:
Z=nh8|W4
n=int(input())
s=input()

if n >= 3200:
    print("red")
else:
    print(s)
    

# Example run
# Input:
-6905831
$051
# Output:
$051
a=int(input())
s=input()
if a>=3200:
  print(s)
else:
  print('red')

# Example run
# Input:
-221907
AuCf6uR><
# Output:
red
a = int(input())
s = input()
if (a >= 3200):
  print(s)
else:
  print('red')

# Example run
# Input:
-1
?CZv^
# Output:
red
a=int(input())
s=input()
if a>=3200: print(s)
else: print("red")

# Example run
# Input:
1761864
ny`
# Output:
ny`
a = int(input())
s = input()
if a>=3200:
  print(s)
else:
  print('red')

# Example run
# Input:
-172907376
p2<j
# Output:
red
a = int(input())
s = input()
print('red' if a<3200 else s)

# Example run
# Input:
-142
*'x-S-PK
# Output:
red
n=int(input())
s=input()
if n>=3200:
  print(s)
else:
  print("red")

# Example run
# Input:
-707310
[<}:
# Output:
red