

Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 100 点
問題文
整数 a と、英小文字からなる文字列 s が入力されます。
a が 3200 以上なら s と出力し、a が 3200 未満なら red
と出力するプログラムを書いてください。
制約
- 2800 \leq a < 5000
- s は長さ 1 以上 10 以下の文字列である。
- s の各文字は英小文字である。
入力
入力は以下の形式で標準入力から与えられる。
a s
出力
a が 3200 以上なら s と出力し、a が 3200 未満なら red
と出力せよ。
入力例 1
3200 pink
出力例 1
pink
a = 3200 は 3200 以上であるため s = pink
と出力します。
入力例 2
3199 pink
出力例 2
red
a = 3199 は 3200 未満であるため red
と出力します。
入力例 3
4049 red
出力例 3
red
a = 4049 は 3200 以上であるため s = red
と出力します。
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
.