PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#SP0000148. Trò chơi tổng nguyên tố (Prime Sum Game)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Trò chơi tổng nguyên tố (Prime Sum Game)

Prime Sum Game

Source: AtCoder

Version: Phuoc Hung OJ Extended

Problem Statement

Takahashi first chooses x∈[A,B]x\in[A,B], then Aoki chooses y∈[C,D]y\in[C,D] after seeing xx. Aoki wins if x+yx+y is prime; otherwise Takahashi wins. Both play optimally. Print the winner.

Input

One line containing A,B,C,DA,B,C,D.

Output

Print Takahashi or Aoki.

Subtask

  • Subtask 1 (20 points): 1≤A≤B≤201\le A\le B\le20 and 1≤C≤D≤201\le C\le D\le20.
  • Subtask 2 (30 points): 1≤A≤B≤501\le A\le B\le50 and 1≤C≤D≤501\le C\le D\le50.
  • Subtask 3 (50 points): 1≤A≤B≤1001\le A\le B\le100 and 1≤C≤D≤1001\le C\le D\le100.

Example

Input

2 3 3 4

Output

Aoki

Explanation

For Takahashi choice 2, Aoki answers 3, making 5. For Takahashi choice 3, Aoki answers 4, making 7. Both sums are prime.