100670: [AtCoder]ABC067 A - Sharing Cookies

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $100$ points

Problem Statement

Snuke is giving cookies to his three goats.

He has two cookie tins. One contains $A$ cookies, and the other contains $B$ cookies. He can thus give $A$ cookies, $B$ cookies or $A+B$ cookies to his goats (he cannot open the tins).

Your task is to determine whether Snuke can give cookies to his three goats so that each of them can have the same number of cookies.

Constraints

  • $1 \leq A,B \leq 100$
  • Both $A$ and $B$ are integers.

Input

Input is given from Standard Input in the following format:

$A$ $B$

Output

If it is possible to give cookies so that each of the three goats can have the same number of cookies, print Possible; otherwise, print Impossible.


Sample Input 1

4 5

Sample Output 1

Possible

If Snuke gives nine cookies, each of the three goats can have three cookies.


Sample Input 2

1 1

Sample Output 2

Impossible

Since there are only two cookies, the three goats cannot have the same number of cookies no matter what Snuke gives to them.

Input

题意翻译

##### 分享饼干 某人想给山羊喂饼干,现在有3只山羊,要使他们得到的饼干数相同,你可以给他们A份或B份或A+B份饼干;请你判断3只山羊是否能得到同样数量的饼干; 输入格式: 两个整数A,B; 输出格式: 如果他们得到的饼干数有可能相同,输出Possible 否则输出Impossible; 数据条件:1 ≤ A,B ≤ 100;并且都是整数;

加入题单

上一题 下一题 算法标签: