import java.io.* import java.util.* import kotlin.math.* val pw = PrintWriter(System.out, false) val br = System.`in`.bufferedReader() fun main(args: Array) { val T = br.readLine()!!.toInt() repeat(T) {solve()} pw.flush() } fun solve() { val N = br.readLine()!!.toLong(); pw.println(N*8L) }