| Valentine Algorithm Cup 2015 |
|---|
| Закончено |
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 is a number n, 1 ≤ n ≤ 101000 .
Your program should accept the number n, if and only if Shakira will love it, using language Autolan.
31
Accepted
31294034
Rejected
31294035
Accepted
| Название |
|---|


