RT.
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #define P 9876543210000000LL using namespace std; long long t,x; int main() { scanf("%lld",&t); for (long long i=1;i<=t;i++) { scanf("%lld",&x); if (!x) printf("-1\n"); else printf("%lld\n",(P/x+1)*x); } return 0; }