for _ in range(int(input())): print('=' * int(input()))
#include <iostream>
#include <string>
#include <string_view>
int main() {
int n;
std::cin >> n;
while (n--) {
int k;
std::cin >> k;
std::string equals(k, '=');
std::cout << std::string_view(equals) << '\n';
}
return 0;
}