package main import . "fmt" func main() { var t int Scan(&t) for ;t>0;t-- { var n,m int64 Scan(&n) for m=10;m<=n;m*=10 {} Println(n*m) } }