B. 2048 Game
time limit per test
2 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output
Examples
Input
4
4 2 2 8
Output
YA
Input
4
8 1 1 4
Output
TIDAK
Input
2
1024 1024
Output
YA