#include int main() { int T; std::cin >> T; while (T--) { int N; std::cin >> N; std::cout << 8ll * N << '\n'; } }