logo AlgoBeat OnlineJudge
登录 注册

#217321. [ICPC 2017 Nanning R] Twice Equation

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

题目描述

For given , find the smallest no smaller than for which there exists an positive integer for which .

输入格式

This problem contains multiple test cases. The first line of a multiple input is an integer followed by input lines. Each line contains an integer .

输出格式

For each given , output the smallest . If available does not exist, output .

样例

样例输入 1

3
1
4
21

样例输出 1

3
20
119