

Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 100 点
問題文
文字列 S が入力されます。これは、西暦 2019 年の実在する日付を yyyy/mm/dd
の形式で表したものです。(例えば、2019 年 4 月 30 日は 2019/04/30
と表されます。)
S が表す日付が 2019 年 4 月 30 日またはそれ以前なら Heisei
、そうでなければ TBD
と出力するプログラムを書いてください。
制約
- S は西暦 2019 年の実在する日付を
yyyy/mm/dd
の形式で表す文字列である。
入力
入力は以下の形式で標準入力から与えられる。
S
出力
S が表す日付が 2019 年 4 月 30 日またはそれ以前なら Heisei
、そうでなければ TBD
と出力せよ。
入力例 1
2019/04/30
出力例 1
Heisei
入力例 2
2019/11/01
出力例 2
TBD
Score : 100 points
Problem Statement
You are given a string S as input. This represents a valid date in the year 2019 in the yyyy/mm/dd
format. (For example, April 30, 2019 is represented as 2019/04/30
.)
Write a program that prints Heisei
if the date represented by S is not later than April 30, 2019, and prints TBD
otherwise.
Constraints
- S is a string that represents a valid date in the year 2019 in the
yyyy/mm/dd
format.
Input
Input is given from Standard Input in the following format:
S
Output
Print Heisei
if the date represented by S is not later than April 30, 2019, and print TBD
otherwise.
Sample Input 1
2019/04/30
Sample Output 1
Heisei
Sample Input 2
2019/11/01
Sample Output 2
TBD