public void TalkWithMatka(){
		BufferedReader bf2=null;
		try{
			BufferedReader bf = new BufferedReader(new InputStreamReader(socket.getInputStream()));
			PrintWriter toServer = new PrintWriter(socket.getOutputStream(),true);
			bf2 = new BufferedReader(new InputStreamReader(System.in));
			boolean flag=true;
			while(flag){
				String answerFromServer = new String(getanswer(bf));
				System.out.println(answerFromServer);
				String answerFromClient = bf2.readLine();
				if(answerFromClient.equals("-1") || answerFromClient.equals("0"))
					flag = false;
				toServer.println(answerFromClient);
			}
		}catch(IOException e){
			System.out.println("Connection is aborted. Do you want try again? Yes - 1, No - 0.");			
			try {
				if(Integer.parseInt(bf2.readLine())==1)
					TalkWithMePlease();				
			} catch (NumberFormatException e1) {
				System.out.println("Wrong format of message. Sorry.");
			} catch (IOException e1) {
				e1.printStackTrace();
			}
		}
	}