#abc212a. A - Alloy

A - Alloy

Score : 100100 points

问题描述

Takahashi 将 AA 克黄金和 BB 克白银 (0A,B, 0<A+B)(0 \leq A,B,\ 0 < A+B) 融化并混合,以制造新的金属。

他所生产的金属是什么:纯金、纯银还是合金?

正式地,产品的定义如下:

  • 0<A0 < AB=0B=0,则为纯金。
  • A=0A=00<B0 < B,则为纯银。
  • 0<A0 < A0<B0 < B,则为合金。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

Takahashi melted and mixed AA grams of gold and BB grams of silver (0A,B, 0<A+B)(0 \leq A,B,\ 0 \lt A+B) to produce new metal.

What metal did he produce: pure gold, pure silver, or an alloy?

Formally, the product is called as follows.

  • Pure gold, if 0<A0 \lt A and B=0B=0.
  • Pure silver, if A=0A=0 and 0<B0 \lt B.
  • An alloy, if 0<A0 \lt A and 0<B0 \lt B.

Constraints

  • 0A,B1000 \leq A,B \leq 100
  • 1A+B1 \leq A+B
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

AA BB

Output

If the product is pure gold, print Gold; if it is pure silver, print Silver; if it is an alloy, print Alloy.

Sample Input 1

50 50

Sample Output 1

Alloy

We have 0<A0 \lt A and 0<B0 \lt B, so the product is an alloy.

Sample Input 2

100 0

Sample Output 2

Gold

We have 0<A0 \lt A and B=0B=0, so the product is pure gold.

Sample Input 3

0 100

Sample Output 3

Silver

We have A=0A=0 and 0<B0 \lt B, so the product is pure silver.

Sample Input 4

100 2

Sample Output 4

Alloy

update @ 2024/3/10 09:26:43