Problem:


Score : 100 points

Problem Statement

You will be given an integer a and a string s consisting of lowercase English letters as input.

Write a program that prints s if a is not less than 3200 and prints red if a is less than 3200.

Constraints

2800 \leq a < 5000

s is a string of length between 1 and 10 (inclusive).

Each character of s is a lowercase English letter.

Input

Input is given from Standard Input in the following format:

a
s

Output

If a is not less than 3200, print s; if a is less than 3200, print red.

Sample Input 1

3200
pink

Sample Output 1

pink

a = 3200 is not less than 3200, so we print s = pink.

Sample Input 2

3199
pink

Sample Output 2

red

a = 3199 is less than 3200, so we print red.

Sample Input 3

4049
red

Sample Output 3

red

a = 4049 is not less than 3200, so we print s = red.



Sample input:
3200
pink


Sample output:
pink

Submission status: Wrong Answer

Solution code:
a, s = open(0).read().split()
if int(a) >= 3200:
  print('red')
else:
  print(a)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if t == s:
    ans = len(t)
else:
    try:
        ans = s.index(t[0]) + 1
        for i in range(1, len(t)):
            if t[i] in s:
                if s.index(t[i]) >= s.index(t[i-1]):
                    ans += s.index(t[i]) - s.index(t[i-1])
                else:
                    ans += s.index(t[i]) - s.index(t[i-1]) + len(s)
            else:
                ans = -1
                break
    except ValueError:
        ans = -1
                
print(ans)

Submission status: Wrong Answer

Solution code:
def find(i, ss, step):
    for j in range(step, len(ss)):
        #print(i, j, ss[j])
        if i == ss[j]:
            a = j
            return a, step
    return -1


s = input().strip()
#print(s)
t = input().strip()
#print(t)
ss = s * 500
#print(ss)
step = 0
for i in t:
    a = find(i, ss, step)
    if a == -1:
        print(-1)
        break
    else:
        #print(a)
        step = a[0] + 1
        #print(step)
if a != -1:
    print(step)

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a < 3200:
	print(s)
else:
	print('red')

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a<= 3200:
  print(s)
else:
  print("red")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
print("red") if int(input()) < 3200 else print("pink")

Submission status: Wrong Answer

Solution code:
s = int(input())

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

Submission status: Wrong Answer

Solution code:
a,s=int(input()),input()
if a>=3200:
    print('s')
else:
    print('red')

Submission status: Wrong Answer

Solution code:
a=int(input())
if a>=3200:
    print('s')
else:
    print('red')

Submission status: Wrong Answer

Solution code:
a=int(input())
if a>=3200:
  print("s")
elif a<3200:
  print("red")

Submission status: Wrong Answer

Solution code:
n=int(input())
s=input()
if n>=3200:
  print('red')
else:
  print(s)

Submission status: Wrong Answer

Solution code:
try:
    N = int(input())
    if N>1:
        S = input()
        A = S.split()
        A = list(map(float, A))
        if all(i >= 0 or i < 1000 for i in A):
            sum = [0]*(N)
            sum = A.copy()
            for k in range(0, N):
                for i in range(0, N-1):
                    if((k+i)>=(N-1)):
                        j = i+k+1-N
                    else:
                        j=i+k+1
                    sum[k] = (sum[k]+A[j])/2
            
    print(max(sum))

except:
    print("Error")

Submission status: Wrong Answer

Solution code:
if __name__=="__main__":
    import sys
    a = int(input("Please enter a nubmer: "))
    s = input("Please enter a String: ")
else:
     a = input()
     s = input()
if a>=3200:
    print(s)
else:
    print('red')

Submission status: Wrong Answer

Solution code:
if __name__=="__main__":
    import sys

a = int(input("Please enter a nubmer: "))
s = input("Please enter a String: ")
 
if a>=3200:
 print(s)
else:
 print('red')

Submission status: Wrong Answer

Solution code:
s = int(input())

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

Submission status: Wrong Answer

Solution code:
number = int(input())
color = input()

if number <= 3200:
  print("red")
else:
  print(color)

Submission status: Wrong Answer

Solution code:
number = int(input())
color = input()

if number >= 3200:
  print("red")
else:
  print(color)

Submission status: Wrong Answer

Solution code:
a=int(input())
s=input()
if a<=3200:
 print('red')
else:  print( s)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a=int(input())
b=str(input())
if a>=3200:
	print('s')
else:
	print('red')

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if (a<=3200):print(s)
else:print("red")

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a<3200:print(s)
else:print("red")

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if(a >= 2400):print(s)
else:print("red")

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a < 2801:
    print('red')
else:
    print(s)

Submission status: Wrong Answer

Solution code:
a = int( input() )
s = input()
 
if a >= 3200 :
  print( 'red' )
else:
  print( s )

Submission status: Wrong Answer

Solution code:
a = int(input())
s = str(input())
if a > 3200:
  print(s)
else:
  print('red')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
num = int(input())
word = input()
if num <= 3200:
  print("red")
else:
  print(word)

Submission status: Wrong Answer

Solution code:
a=int(input())
s=input()
if a<3200:
    print("red")
else:
    print(a)
    print(s)

Submission status: Wrong Answer

Solution code:
s=int(input())
print("red"if 3200>s else s)

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a >= 3200:
  print("red")
else:
  print(s)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a=int(input())
s=input()
if a<3200:
    print('red')
print(s)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if 2800 <= a < 5000:
  s = 'red'
print(s)

Submission status: Wrong Answer

Solution code:
a = int()
s = []

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

Submission status: Wrong Answer

Solution code:
if int(input()) <= 3200:
    print(input())
else:
    print('red')

Submission status: Wrong Answer

Solution code:
a=int(input())
s=input()
if a>=3200:
  print('red')
else:
  print(s)

Submission status: Wrong Answer

Solution code:
point = raw_input()
colorTest = raw_input()

if point >= 3200:
  print colorTest
else :
  print "red"

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a > 3200:
    print("red")
else:
    print(s)

Submission status: Wrong Answer

Solution code:
import sys
import numpy as np
import bisect
s = input()
t = input()


print(-1)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if (int(a) >= 3200):
    b = 'red'

print(b)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = int(input())
b = input()
if a >= 3200:
  print('red')
else:
  print(b)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
print('red') if a >= 3200 else print(s)

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input().strip()

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

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
  
if a >= 3200:
    print("red")
else:
    print(s)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = input()
if n < 3000:
	print("red")
else:
	print(a)

Submission status: Wrong Answer

Solution code:
inp = [input() for i in range(2)]
print(inp)

a = int(inp[0])
s = inp[1]
red = "red"

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

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a >= 3200:
	print(a)
else:
	print("red")

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a >= 3200:
  print("s")
else:
  print("red")

Submission status: Wrong Answer

Solution code:
a = int(input())
S = input()
if a > 3200 :
  print("red")
else:
  print(S)

Submission status: Wrong Answer

Solution code:
def main():
    s = input()
    t = input()
    s2 = s * 2
    sett = list(set((t)))
    settindex = {}
    for i in sett:
        settindex[i] = sett.index(i)
        if i not in s:
            print(-1)
            return
    lens = len(s)
    # index[i文字目以降][settのindex]に何文字目にあるかが格納される
    index = [[] for _ in range(lens)]
    for i in range(lens):
        for j in sett:
            index[i].append(s2[i:].index(j))
    ans = 0
    n = 0
    for i in t:
        j = settindex[i]
        ans += index[n % lens][j] + 1
        n += index[n % lens][j] + 1
    print(ans)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print('pink')

Submission status: Wrong Answer

Solution code:
input_num=input()
input_str=input()
print(str(input_num))
if int(input_num)>=3200:
  print(input_str)
else:
  print("red")

Submission status: Wrong Answer

Solution code:
input_num=input()
input_str=input()
print(str(input_num))
if int(input_num)>=320:
  print(input_str)
else:
  print(red)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
print('red' if int(input()) > 3200 else input())

Submission status: Wrong Answer

Solution code:
a = int(input())
s = str(input())
if a >= 3200:
  print(s)
print("red")

Submission status: Wrong Answer

Solution code:
s = 'pink'
a = 3200

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

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a <= 3200:
    print(s)
else:
    print("red")

Submission status: Wrong Answer

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

#contest
#son
wrap = 0
index = -1
for  i in t:
    index = s.find(i,index+1)
    if index != -1:
        continue
    wrap +=1
    index = s.find(i)
    if index ==  -1:
        print(-1)
        exit()
print(len(s)*wrap+index+1)

Submission status: Wrong Answer

Solution code:
a = int(input())
s = str(input())
if (a >= 3200):
    print(s)
else:
    print("Red")

Submission status: Wrong Answer

Solution code:
a=int(input())
s=input()
if a<=3200:
  print("red")
else:
  print(s)

Submission status: Wrong Answer

Solution code:
a=int(input())
s=input()
if a>=3200:
  print("red")
else:
  print(s)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if x>3200:
  print(s)
else:
  print('red')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a=int(input())
s=input()
print('s' if a>=3200 else 'red')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
if int(input()) >= 3200:
    print(input)
else:
    print("red")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = int(input())
s = str(input())
if a < 3200:
  print(s)
else:
  print("red")

Submission status: Wrong Answer

Solution code:
a = 4000
if a >= 3200:
  print("s")
elif a <= 3200:
  print("red")

Submission status: Wrong Answer

Solution code:
a=input().strip()
a=int(a)
s=input().strip()
if a>=3200 and a<5000:
  if a<3200:
    print('red')
  else:
    print(s)

Submission status: Wrong Answer

Solution code:
a=input()
a=int(a)
s=input()
if a>=3200 and a<5000:
  if a<3200:
    print('red')
  else:
    print(s)

Submission status: Wrong Answer

Solution code:
a = int(input())
s = str(input())
if a >= 3200:
    print(a)
else:
    print("red")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#coding: utf-8
i =int(input())
s = input()
if i>3200:
  print(s)
else:
  print(i)

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a >= 3200:
  print(s)
else:
  print("Red")

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a >= 3200:
  print(a, "red")
else:
  print(a, s)

Submission status: Wrong Answer

Solution code:
a=int(input())
s=str(input())
if a <= 3200:
  print("s")
else:
  print("red")

Submission status: Wrong Answer

Solution code:
a=int(input())
s=str(input())
if a >=3200:
  print("s")
else:
  print("red")

Submission status: Wrong Answer

Solution code:
a=int(input())
s=input()
if a<3200:
  print(s)
else:
  print("red")

Submission status: Wrong Answer

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

if(s.isalnum and len(s) != 0 and len(s) > 9):
    if(a > 3199):
        print(s)
    else:
        print("red")
else:
    print("sが条件を満たしていません")

Submission status: Wrong Answer

Solution code:
a=int(input())
s=input()
if a> 3200:
  print(s)
else:
  print("red")

Submission status: Wrong Answer

Solution code:
# coding:utf-8
 
num = int(input())
chr = input()
 
if num<=3200:
  print(chr)
else:
  print("red")

Submission status: Wrong Answer

Solution code:
num = int(input())
color = input()

if num > 3200:
  print(color)
else:
  print('red')

Submission status: Wrong Answer

Solution code:
color = int(input())
if color > 3200:
  print(str(color))
else:
  print('red')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input().split()
if a < 3200:
  print("red")
else:
  print(s)

Submission status: Wrong Answer

Solution code:
def color(a, string):
  if a <= 3200:
    print(string)
  else:
    print("red")

Submission status: Wrong Answer

Solution code:
a = input("a: ")
s = input("s: ")

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
from itertools import *
import sys
import time


#################### library ####################


#################### naive ####################


#################### process ####################


#################### main ####################

#t0 = time.clock()
a = int(raw_input('>'))
s = raw_input('>')
if a < 3200:
	print 'red'
else:
	print s
#print >>sys.stderr, "%.6fsec" % (time.clock() - t0,)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
from itertools import *
import sys
import time


#################### library ####################


#################### naive ####################


#################### process ####################


#################### main ####################

t0 = time.clock()
a = int(input('>'))
s = raw_input('>')
if a < 3200:
	print 'red'
else:
	print s
#print >>sys.stderr, "%.6fsec" % (time.clock() - t0,)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
from itertools import *
import sys
import time


#################### library ####################


#################### naive ####################


#################### process ####################


#################### main ####################

t0 = time.clock()
a = int(input('>'))
s = raw_input('>')
if a < 3200:
	print 'red'
else:
	print s
print >>sys.stderr, "%.6fsec" % (time.clock() - t0,)

Submission status: Wrong Answer

Solution code:
n = int(input())
s =  input()
if n<=3200:
  print(s)
else:
  print("red")

Submission status: Wrong Answer

Solution code:
n  = int(input())
s = input()
if n <= 3200:
  print(s)
else:
  print("red")

Submission status: Wrong Answer

Solution code:
a=int(input())
s=input()
if a>3200:
  print(s)
else:
  print("red")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a=int(input())
s="blue"

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if a <= 3200:
    print(s)

else:
    print ("red")

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a <= 3200:
  print(s)
else:
  print("red")

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a >= 3200:
  print(a)
  print(s)
else:
  print("red")

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a >= 3200:
  print(s)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
# 文字列の入力
s = input()
# 出力
if a >= 3200:
	print(a)
else:
	print('red')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
# 文字列の入力
s = input()
# 出力
if a >= 3200:
	print(a)
else:
	print(s)

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a <= 3200:
    print(s)
else:
    print('red')

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a < 3200:
  print(s)
else:
  print("red")

Submission status: Wrong Answer

Solution code:
if int(input()) > 3200:
  print(input())
else:
  print("red")

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
r = 'red' if a >= 3200 else s
print(r)

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input() if a > 3200 else 'red'
print(s)

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input() if a < 3200 else 'red'
print(s)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = int(input())
s = str(input())
print(s if a > 3200 else "red")

Submission status: Wrong Answer

Solution code:
a = int(input())
if a >= 3200:
    print('s')
else:
    print('red')

Submission status: Wrong Answer

Solution code:
s = input()
t = input()
alphabet_num = 26
double_s = s+s
len_s = len(s)
next_step = []
for i in range(len_s):
    next_step_same_alphabet = [-1]*alphabet_num
    for alphabet in range(alphabet_num):
        for j in range(i+1,len_s*2):
            if alphabet == ord(double_s[j])-ord('a'):
                next_step_same_alphabet[alphabet] = j-i
                break
            else:
                continue
    next_step.append(next_step_same_alphabet)
count = 0
place_now = 0
if t[0] != s[0]:
    count += 1
for i in range(len(t)):
    if next_step[place_now][ord(t[i])-ord('a')]  > 0:
        count += next_step[place_now][ord(t[i])-ord('a')]
        place_now += next_step[place_now][ord(t[i])-ord('a')]
        if place_now >= len_s:
            place_now = place_now - len_s
    else:
        count = -1
        break
print(count)

Submission status: Wrong Answer

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

import sys


a = int(sys.stdin.readline())
s = sys.stdin.readline()

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
入力=input()
整数入力=int(入力)
出力=print

レート,色=整数入力,入力
if レート<3200:
  出力("red")
else:
  出力(色)

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a=int(input())
s=str(input())
if a>3200:
    print(s)
else:
    print('red')

Submission status: Wrong Answer

Solution code:
N=int(input())
s=str(input())
print(N)
if N<<3200:
    print('red')
else:
    print(s)

Submission status: Wrong Answer

Solution code:
a = int(input())

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,s=open(0);print((s,"red")[int(a)>3199])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = int(input())
b = input()

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

Submission status: Wrong Answer

Solution code:
s = input()
t = input()
D = {}
len_s = len(s)
for tc in t:
    D[tc] = [0] * len_s
s += s
flag = True
for a in D.keys():
    index = -1
    for i in range(len_s * 2):
        if s[i] == a:
            index = i
        D[a][i % len_s] = index % len_s
    if index == -1:
        flag = False

Submission status: Wrong Answer

Solution code:
s = input()
t = input()
for i in range(23):
  for j in range(len(s)):
    pass

Submission status: Wrong Answer

Solution code:
if 3200 <= int(input()):
    print(input())

Submission status: Wrong Answer

Solution code:

a = input()

s = input()

if int(a) >= 3200 :
    print(s)
else:
    print(a)

Submission status: Wrong Answer

Solution code:
a=int(input())
s=str(input())
if a>=3200:
	print("red")
else:
	print(s)

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
print([s, "red"][a >= 3200])

Submission status: Wrong Answer

Solution code:
n, s = int(input()), input()
print([s, "red"][n > 3200])

Submission status: Wrong Answer

Solution code:
num=int(input())
text=input()

if num>=3200:
    print(num)
else:
    print('red')

Submission status: Wrong Answer

Solution code:
num=int(input())
text=input()

if num>=3200:
    print(3200)
else:
    print('red')

Submission status: Wrong Answer

Solution code:
a = 4100
s = 'pink'

if 3200 <= a < 5000:
  print(s)
elif 2800 <= a < 3200:
  print('red')
else:
  pass

Submission status: Wrong Answer

Solution code:
num = int(input())
s =input()
if num>=3200:
  print("red")
else:
  print(s)

Submission status: Wrong Answer

Solution code:
N = int(input())
s = input()
if N < 3200 :
  print("red")
else :
  print("pink")

Submission status: Wrong Answer

Solution code:
a = int(input().strip())
s = input().strip()
if a < 3200:
  print(s)
else:
  print('red')

Submission status: Wrong Answer

Solution code:
N = int(input())
if N < 3200 :
  print("red")
else :
  print("pink")

Submission status: Wrong Answer

Solution code:
s = list(input())
t = list(input())

ls = len(s)
lt = len(t)
st = set(t)
flg = 0

for i in st:
  if s.count(i)==0:
    flg = -1
    print(flg)
    exit()

i = 0
j = 0
s = s*100000

while i<lt:
  if t[i]==s[j]:
    i+=1
  j+=1
  
print(j)

Submission status: Wrong Answer

Solution code:
def next_node(node_num):
  next_nodes = []
  for edge in tree:
    if edge[0] == node_num:
      next_nodes.append(edge[1])
  return next_nodes

def all_nodes(num):
  x = [] 
  add_nodes = next_node(num)
  while add_nodes != []:
    for i in add_nodes:
      add_nodes += next_node(i) 
      x += add_nodes
      add_nodes = []
  return x

Submission status: Wrong Answer

Solution code:
import sys
sys.setrecursionlimit(10**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 sys.stdin.readline().strip()
INF = 10 ** 18
MOD = 10 ** 9 + 7

debug = True
debug = False

def dprint(*objects):
    if debug == True:
        print(*objects)

def main():
    s = SI()
    t = SI()

    d = {}
    for i, c in enumerate(s):
        if c not in d.keys():
            d[c] = [i]
        else:
            d[c].append(i)

    def init_didx():
        didx = {}
        for k in d.keys():
            didx[k] = 0
        return didx

    didx = init_didx()
    for c in set(t):
        if c not in d.keys():
            print(-1)
            return

    dprint(d)
    dprint(didx)

    import bisect

    i_loop = 0
    currentidx = -1
    for c in t:
        # 次の文字を読む
        poslist = d[c]

        if len(poslist) <= didx[c]:
            # 文字を取り切っている場合は次のループに
            i_loop += 1
            didx = init_didx()
            currentidx = poslist[0]
            didx[c] += 1
        else:
            # とり切っていない場合

            posidx = bisect.bisect_right(poslist[didx[c]:], currentidx)

            if posidx >= len(poslist[didx[c]:]):
                # とれないなら次のループでとったことにする
                i_loop += 1
                didx = init_didx()
                currentidx = poslist[0]
                didx[c] += 1
            else:
                # 同じループでとれるなら取って、現在位置を更新
                pos = poslist[didx[c]:][posidx]
                currentidx = pos
                didx[c] = posidx + 1

        dprint(c, i_loop, pos, currentidx)
        dprint(didx)

    print(len(s)*i_loop + currentidx + 1)

main()

Submission status: Wrong Answer

Solution code:
#

import itertools
from collections import Counter
from collections import defaultdict
from collections import deque
import bisect
from heapq import heappush, heappop
import sys
sys.setrecursionlimit(1000000000)

def solve(positions, s, t):
    # print('{}, s = {}, t = {}'.format(positions, s, t))
    if len(t) == 0:
        return 0

    if len(positions[t[0]]) == 0:
        return -1

    i = 0
    j = 0
    while i < len(s) and j < len(t):
        candidates = positions[t[j]]
        pos = bisect.bisect_left(candidates, i)
        if pos == len(candidates):
            break

        i = candidates[pos] + 1
        j += 1

    if j == len(t):
        return i
    else:
        rest = solve(positions, s, t[j:])
        return len(s) + rest if rest != -1 else -1


def main():
    s = input()
    t = input()

    positions = defaultdict(list)
    for i in range(len(s)):
        positions[s[i]].append(i)

    print(solve(positions, s, t))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
def check(t,s):
    i=0
    for j in range(len(s)):
        if(i==len(t)):
            return (True,j)
        if(t[i]==s[j]):
            i+=1
    if(i==len(t)):
        return (True,len(s))
    return False,-1
        

def solve(s,t):
    new_s = s
    for a in t:
        if a not in s:
            return -1
    l = 1
    r = 1005
    final = 10**100
    while(l<=r):
        mid = (l+r)//2
        new_s = s*mid
        done,ans = check(t,new_s)
        if(done):
            final = min(final,ans)
            r = mid-1
        else:
            l = mid+1
    return final

s = input()
t = input()
print(solve(s,t))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a < 3200:
    print("red")
else:
    print("s")

Submission status: Wrong Answer

Solution code:
a = int(input())
s = input()
if a >= 3200:
    print("red")
else:
    print(s)

Submission status: Wrong Answer

Solution code:
a = int(input())

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

elif a < 3200:
    print('red')

Submission status: Wrong Answer

Solution code:
input_number = int(input())
input_string = input()
if input_number < 3200:
    print(input_number)
else:
    print(input_string)

Submission status: Wrong Answer

Solution code:
a = int(input())

if a >= 3200:
    print('pink')

elif a < 3200:
    print('red')

Submission status: Wrong Answer

Solution code:
a=int(input())
s=input()
if a<3200:
  print(s)
else:
  print('red')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = int(input())

if a >= 3200:
    print('pink')

else:
    print('red')

Submission status: Wrong Answer

Solution code:
def sol(a, s):
    if a >= 3200:
        return s
    else:
        return 'red'

Submission status: Wrong Answer

Solution code:
a = 0
s = ''
if a >= 3200:
  print(s)
elif a < 3200:
  print('red')

Submission status: Wrong Answer

Solution code:
n=int(input())
s=input()
if n>=3200:
  print(s)
else:
  print("Red")

Submission status: Wrong Answer

Solution code:
a = input()
if int(a) >= 3200:
  print("s")
elif int(a) < 3200:
  print("red")

Submission status: Wrong Answer

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

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