import java.io.*;
import java.util.Scanner;


public class PrintYourself {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		//get the class name and add .java after the name, store a variable as file.java
	    StackTraceElement[] stack = Thread.currentThread ().getStackTrace ();
	    StackTraceElement main = stack[stack.length - 1];
	    String mainClass = main.getClassName ();
	    mainClass = mainClass + ".java";
	    System.out.println(mainClass);
	    
		//read the file and output it to the screen
	    FileInputStream fis;
		try {
			fis = new FileInputStream(mainClass);
		    InputStreamReader in = new InputStreamReader(fis, "UTF-8");
		    Scanner sc = new Scanner(in);
		    while(sc.hasNextLine())
		    	System.out.println(sc.nextLine());
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 
		
	    
	}
}
