/*  Write a program that reads a string, and then outputs the string without its middle character when the length is odd, and without the middle 2 characters when the length is even.
*/
 
import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String word = sc.next();
        int length = word.length();
        if (length % 2 == 1) {
            String nnn = word.substring(length/2,length-length/2);
 
            //System.out.println(nnn);
        } else {
 
        }
 
    }
}
как вырезать буквы которые находятся вне range?