AtCoder Beginner Contest 067
翻译中…
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.
翻译中…
样例
Input #1
4 5
Output #1
Possible
If Snuke gives nine cookies, each of the three goats can have three cookies.
Input #2
1 1
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.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。