#C2693. Remove the Last Character
Remove the Last Character
Remove the Last Character
You are given a list of strings. Your task is to remove the last character from each string.
The input begins with an integer N representing the number of strings. This is followed by N lines, each containing a non-empty string. For each string, remove its last character and print the modified string on a new line.
Note: If a string is empty (after processing), simply print an empty line.
Formally, for each string \(s\), output \(s[0:|s|-1]\) where \(|s|\) denotes the length of the string.
inputFormat
The first line of the input contains a single integer N (\(1 \le N \le 10^5\)), representing the number of strings.
The next N lines each contain a string. Each string will consist of uppercase English letters and its length will be at least 1.
outputFormat
Output exactly N lines. Each line should contain the corresponding input string with its last character removed.
## sample3
HELLO
WORLD
PYTHON
HELL
WORL
PYTHO
</p>