401914: GYM100574 A Valentine's Present

Memory Limit:64 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

A. Valentine's Presenttime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard output

Shokri is at a number store and wants to buy his love, Shakira a present for valentine's day (of course a number).

He knows that Shakira, only loves a number if and only if it's a multiply of holy number 31 .

The salesman recommended him a number n, and unfortunately Shokri is unable to check if Shakira loves it.

Your tasks is to accept the number n, if and only if Shakira will love it, using language Autolan.

Your program's order mustn't exceed 107 .

Input

Input is a number n, 1 ≤ n ≤ 101000 .

Output

Your program should accept the number n, if and only if Shakira will love it, using language Autolan.

ExamplesInput
31
Output
Accepted
Input
31294034
Output
Rejected
Input
31294035
Output
Accepted

加入题单

算法标签: