logo AlgoBeat OnlineJudge
登录 注册

#206212. [NWRRC 2014] Alarm Clock

内存限制:128 MiB 时间限制:1000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

Alice likes her digital alarm clock. She sets them up every evening. Last night Alice had a dream about her clock. Unfortunately, the only thing she is able to remember is the number of highlighted segments of the clock. Alice wonders what time was set on the clock in her dream.

Alice's clock have four digits: two for hours and two for minutes. For example, the clock below shows (note the leading zero).

The clock uses following digit representation.

输入格式

The only line of the input file contains single integer — the number of highlighted segments of the clock in Alice's dream .

输出格式

Output five characters in format — the time shown on the clock in Alice's dream. The time must be correct: and . If there are many possible correct times, output any of them. If there is none, output Impossible.

样例

样例输入 1

23

样例输出 1

09:30

样例输入 2

28

样例输出 2

Impossible

样例输入 3

2

样例输出 3

Impossible

数据范围与提示

Time limit: 2 s, Memory limit: 256 MB.

spj provider: @rzh123