public static void vystupMapa(List<Mesto> list, List<Letiste> list2, File f, int bezSous) {
		// TODO Auto-generated method stub

		FileOutputStream stream;
		try {
			stream = new FileOutputStream(f);
			BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(stream));

			writer.append(String.valueOf(bezSous));
			writer.newLine();
			//vypise x, y a jidlo  letiste
			for(int i = 0; i<list2.size();i++){
				writer.append(list2.get(i).getX() + " " +  list2.get(i).getY() + " " + list2.get(i).getJidlo());
				writer.newLine();
			}
			//vypise x, y, pocet obyv mesta
			for(int i = 0; i<list.size();i++){
				Mesto mesto = list.get(i);

				writer.append(mesto.getX() + " " +  mesto.getY() + " " + mesto.getObyvatel() + " " + mesto.getHeliport());
				writer.newLine();
			}
			writer.append("sousedi letist");

			writer.newLine();

			//vypise sousedy letist
			for (int j = 0; j<list2.size(); j++){

				String str = "";
				for(int z = 0; z<list2.get(j).getSousedi().size();z++){
					str = str + Mapa.getIndexMest(list2.get(j).getSousedi().get(z)) + " ";

				}
				writer.append(str);
				writer.newLine();

			}

			writer.write("sousedi mest");
			writer.newLine();

			//vypise sousedy mest
			for(int i =  Generator.indexMestPod2+1; i<list.size();i++){
				Mesto mesto = list.get(i);
				String str = "";
				//System.out.println(i);
				try {
					int pocetSous = mesto.getSousedi().size();
					//System.out.println(pocetSous);
					for (int j =0; j<pocetSous;j++){
						str = str + Mapa.getIndexMest(mesto.getSousedi().get(j)) + " ";	

					}
					writer.append(str);
					writer.newLine();
				} catch (Exception e) {
					System.out.println("mesto bez sousedu");
				}

			}
			writer.append("exit");
			writer.close();
			stream.close();
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}