P26935 [AtCoder] Divisors
提高
题目描述

Problem Description

Given positive integers $ X $ and $ Y $, compare the number of positive divisors of $ X $ and $ Y $.

  • If $ X $ has more positive divisors, output X.
  • If $ Y $ has more positive divisors, output Y.
  • If both have the same number of divisors, output Z.

Input Format

The input is given from the standard input in the following format:

$ X $ $ Y $

Output Format

Output the answer.

Sample Input and Output

Sample Input #1

4 6

Sample Output #1

Y

Sample Input #2

6 4

Sample Output #2

X

Sample Input #3

3 5

Sample Output #3

Z

Notes/Hints

Constraints

  • $1 \leq X, Y \leq 10^6$
  • $ X $ and $ Y $ are integers

Sample Explanation 1

The positive divisors of $ 4 $ are $ 1, 2, 4 $ (3 divisors), and the positive divisors of $ 6 $ are $ 1, 2, 3, 6 $ (4 divisors). Since $ 6 $ has more positive divisors than $ 4 $, output Y.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
4 6
样例输出
Y