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.

Solution in Fortran (gfortran v4.8.4) (judge verdict: Accepted)

module ABC138

  ! <module>s to import
  use, intrinsic :: iso_fortran_env

  ! require all variables to be explicitly declared
  implicit none

  ! accessibility of <subroutine>s and <function>s in this <module>
  public :: task_A

  ! constants for this <module>
  integer, parameter, private :: len_string = 10

  ! contained <subroutine>s and <function>s are below
  contains

  subroutine task_A

    ! variables for this <subroutine>
    character(len=len_string, kind=1) :: given_string
    integer(INT16)                    :: given_integer

    ! STEP.01
    ! read out the given data
    read(unit=INPUT_UNIT, fmt=*) given_integer
    read(unit=INPUT_UNIT, fmt=*) given_string

    ! STEP.02
    ! output the answer of this task
    if ( given_integer .ge. 3200_INT16 ) then
      write(unit=OUTPUT_UNIT, fmt='(A)', advance='yes') trim(given_string)
    else
      write(unit=OUTPUT_UNIT, fmt='(A)', advance='yes') 'red'
    end if

    ! STEP.END
    return

  end subroutine task_A

end module ABC138


program main

  ! <module>s to import
  use, non_intrinsic :: ABC138

  ! require all variables to be explicitly declared
  implicit none

  call task_A

end program main