import java.util.Stack;

public class Solution {
    public static void main(String[] args) throws Exception {
        method1();
    }

    public static String method1() {
        method2();
        //write your code here
        StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
        int stackTraceLength = stackTraceElements.length;
        int callingMethodIndex = stackTraceLength - 1;

        String callingMethodName = stackTraceElements[callingMethodIndex].getMethodName();
        System.out.println(callingMethodName);

        return callingMethodName;
    }

    public static String method2() {
        method3();
        //write your code here

        StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
        int stackTraceLength = stackTraceElements.length;
        int callingMethodIndex = stackTraceLength - 2;

        String callingMethodName = stackTraceElements[callingMethodIndex].getMethodName();
        System.out.println(callingMethodName);

        return callingMethodName;
    }

    public static String method3() {
        method4();
        //write your code here
        StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
        int stackTraceLength = stackTraceElements.length;
        int callingMethodIndex = stackTraceLength - 3;

        String callingMethodName = stackTraceElements[callingMethodIndex].getMethodName();
        System.out.println(callingMethodName);

        return callingMethodName;
    }

    public static String method4() {
        method5();
        //write your code here
        StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
        int stackTraceLength = stackTraceElements.length;
        int callingMthodIndex = stackTraceLength - 4;

        String callingMethodName = stackTraceElements[callingMthodIndex].getMethodName();
        System.out.println(callingMethodName);

        return callingMethodName;
    }

    public static String method5() {
        //write your code here
        StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
        int stackTraceLength = stackTraceElements.length;
        int callingMthodIndex = stackTraceLength - 5;

        String callingMethodName = stackTraceElements[callingMthodIndex].getMethodName();
        System.out.println(callingMethodName);

        return callingMethodName;
    }
}