A. Take It or Double It
time limit per test
1 second
memory limit per test
1024 megabytes
input
standard input
output
standard output

You are the host of a street experiment show called TOPC (Take Or Pass Challenge). In the show, you approach people one by one and offer them some money. Each person can either:

  • Take it: Accept the money and end the game.
  • Double it: Reject the money and ask you to double the amount and offer it to the next person.

The game starts with $$$x$$$ dollars. You go down the street and meet a random person. You would like to predict in advance what each of them will say — either "take" or "double".

You have a limited budget of $$$d$$$ dollars in your pocket. If, at any point, a person's decision could result in an amount strictly greater than your available funds $$$d$$$, you must force the person to say "take it", regardless of what they wanted to say. Taiwanese people are very kind-hearted, so whenever they have a choice, they would always say "double it" and pass the opportunity to others — unless they are forced to take the money.

Your task is to simulate the game and determine if the person you meet will take the money or double it and give it to the next person.

Input

The input contains two integers $$$x$$$ and $$$d$$$.

  • $$$1\le x \le d \le 10^9$$$
Output

Output a string "take it" or "double it".

Examples
Input
123 246
Output
double it
Input
345 678
Output
take it
Input
789 101112
Output
double it