No.427 Television
タグ : / 解いたユーザー数 784
作問者 :
nmnmnmnmnmnmnm
/ テスター :
りあん
Problem Statement
In the country of Yukikoda, there are two types of TV screens: the vertical type, whose "height:width" ratio is "4:3", and the horizontal type, whose ratio is "3:4".
The height and width of a certain TV screen in Yukikoda are given as integers.
Determine "TATE" if it is the vertical type, and "YOKO" if it is the horizontal type.
Input
H W
H is the height of the TV screen. H is an integer. $3 \le H \le 1000000000=10^9$.
W is the width of the TV screen. W is an integer. $3 \le W \le 1000000000=10^9$.
No input is given whose ratio "H:W" is anything other than "4:3" or "3:4".
Output
Output "TATE" if the TV is the vertical type, or "YOKO" if it is the horizontal type, on one line, followed by a newline.
Sample
Sample 1
Input
400 300
Output
TATE
The height is 400 and the width is 300.
Since the "height:width" ratio is "4:3", this is the vertical type.
Sample 2
Input
540 720
Output
YOKO
This is the horizontal type.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。