What is wrong? I don't understand why this code doesn't meet the requirements
package pl.codegym.task.task08.task0829;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
/*
Aktualizacja oprogramowania
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
HashMap<String, String> miasta = new HashMap<>();
int i=0;
while (true) {
String rodzina = reader.readLine();
if (rodzina.isEmpty())
break;
miasta.put("miasto" + i, rodzina);
i++;
}
String miasto = reader.readLine();
System.out.println(miasta.get(miasto));
}
}