import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String temp = sc.nextLine();

        SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd");

        try {
            Date a = df.parse(temp);

            if (a.compareTo(df.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }

        } catch (Exception ex) {
            ex.printStackTrace();
        }

    }

} import java.text.SimpleDateFormat; SimpleDateFormat java.text import java.util.Date; Date java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String temp = sc.nextLine();

        SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd");

        try {
            Date a = df.parse(temp);

            if (a.compareTo(df.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }

        } catch (Exception ex) {
            ex.printStackTrace();
        }

    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String temp = sc.nextLine();

        SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd");

        try {
            Date a = df.parse(temp);

            if (a.compareTo(df.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }

        } catch (Exception ex) {
            ex.printStackTrace();
        }

    } main {
        Scanner sc = new Scanner(System.in);

        String temp = sc.nextLine();

        SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd");

        try {
            Date a = df.parse(temp);

            if (a.compareTo(df.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }

        } catch (Exception ex) {
            ex.printStackTrace();
        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String temp = sc.nextLine(); temp sc.nextLine() sc.nextLine sc SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd"); df new SimpleDateFormat("yyyy/MM/dd") try {
            Date a = df.parse(temp);

            if (a.compareTo(df.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }

        } catch (Exception ex) {
            ex.printStackTrace();
        } catch (Exception ex) {
            ex.printStackTrace();
        } Exception ex {
            ex.printStackTrace();
        } ex.printStackTrace() ex.printStackTrace ex {
            Date a = df.parse(temp);

            if (a.compareTo(df.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }

        } Date a = df.parse(temp); a df.parse(temp) df.parse df temp if (a.compareTo(df.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            } a.compareTo(df.parse("2019/04/30")) <= 0 a.compareTo(df.parse("2019/04/30")) a.compareTo a df.parse("2019/04/30") df.parse df "2019/04/30" 0 {
                System.out.println("Heisei");
            } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" {
                System.out.println("TBD");
            } System.out.println("TBD") System.out.println System.out System System.out "TBD" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String temp = sc.nextLine();

        SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd");

        try {
            Date a = df.parse(temp);

            if (a.compareTo(df.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }

        } catch (Exception ex) {
            ex.printStackTrace();
        }

    }

} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String temp = sc.nextLine();

        SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd");

        try {
            Date a = df.parse(temp);

            if (a.compareTo(df.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }

        } catch (Exception ex) {
            ex.printStackTrace();
        }

    }

} Main
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String temp = sc.nextLine();

        SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd");

        try {
            Date a = df.parse(temp);

            if (a.compareTo(df.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }

        } catch (Exception ex) {
            ex.printStackTrace();
        }

    }

}
