import java.io.*;
import java.net.*;
class MARU{
static String ID = "";
static String PW = "";
public static void main (String[] args){
try {
String LoginURL = "https://2chv.tora3.net/futen2.cgi?ID="+ID+"&PW="+PW+"";
URL url = new URL(LoginURL);
Object content = url.getContent();
if( content instanceof InputStream ){
BufferedReader br = new BufferedReader(new InputStreamReader((InputStream)content));
String n;
while ((n = br.readLine()) != null){
String sid = n.trim();
sid = sid.replaceAll("SESSION-ID=","");
System.out.println(sid);
}
}else{
System.out.println(content.toString());
}
}catch (IOException e){
System.err.println(e);
System.exit(-1);
}
}
}