← run

cf-2065-a

1.000
3/3 tests· algorithms

Proposed solution

```python
def solution():
    import sys
    input = sys.stdin.readline
    for _ in range(int(input().strip())):
        W = input().strip()
        print(W[:-2] + 'i')

if __name__ == "__main__":
    solution()
```

Test output (stdout)

...                                                                      [100%]
3 passed in 0.05s
System prompt
You are an expert programmer. Solve the task exactly as specified. Output your solution as fenced code blocks using the required file name(s) and the exact function/type signatures requested. Prefer correctness; do not include prose outside code unless asked.