こんばんわ、教えていただけませんか?

int x;
System.out.print("input integer: ");
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
try{
String buf = br.readLine();
x = Integer.parseInt(buf);
}catch(Exception e){
x = 0;
}
System.out.println("Input Number = " + x);

でコンソールに入力した数字を

String nen = buf.substring(0,4);を使って●●文字目を抜き出したいのですが、どこに追記すればいいのかわかりません><


例
19900504の1990(頭から4文字)を抜き出したい。