package com.company;
import java.util.Scanner;
public class Exercise_3 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("Введите число");
String a=sc.nextLine();
Number(a);
}
public static String Number(String a) {
if (a.length() % 2 != 0) {
int d = a.length() / 2 + 1;
return a.charAt(d);
} else {
int d = a.length() / 2 - 1;
return (a.substring(d, d + 2));
}
}
}