------
## 最终结论
```python
def max_equal_length_sticks(t, test_cases):
    results = []
    for n in test_cases:
        # Calculate the maximum number of sticks with the same length
        results.append(n // 2)
    return results

# Read input
t = int(input())
test_cases = [int(input()) for _ in range(t)]

# Get the results
results = max_equal_length_sticks(t, test_cases)

# Print the results
for result in results:
    print(result)
```