import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static void main(String[] args) {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);

        String s = null;
        try {
            s = br.readLine();
            br.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

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

        // Date型変換
        Date formatDate = null;
        try {
            formatDate = sdf.parse(s);
        } catch (ParseException e) {
            e.printStackTrace();
        }

        Date compareDate = null;
        try {
            compareDate = sdf.parse("2019/04/30");
        } catch (ParseException e) {}

        if (formatDate.after(compareDate)) { // formatDate(2019/05/01...) > compareDate(2019/04/30)
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.text.ParseException; ParseException java.text import java.text.SimpleDateFormat; SimpleDateFormat java.text import java.util.Date; Date java.util public class Main {
    public static void main(String[] args) {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);

        String s = null;
        try {
            s = br.readLine();
            br.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

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

        // Date型変換
        Date formatDate = null;
        try {
            formatDate = sdf.parse(s);
        } catch (ParseException e) {
            e.printStackTrace();
        }

        Date compareDate = null;
        try {
            compareDate = sdf.parse("2019/04/30");
        } catch (ParseException e) {}

        if (formatDate.after(compareDate)) { // formatDate(2019/05/01...) > compareDate(2019/04/30)
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    }
} Main public static void main(String[] args) {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);

        String s = null;
        try {
            s = br.readLine();
            br.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

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

        // Date型変換
        Date formatDate = null;
        try {
            formatDate = sdf.parse(s);
        } catch (ParseException e) {
            e.printStackTrace();
        }

        Date compareDate = null;
        try {
            compareDate = sdf.parse("2019/04/30");
        } catch (ParseException e) {}

        if (formatDate.after(compareDate)) { // formatDate(2019/05/01...) > compareDate(2019/04/30)
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    } main {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);

        String s = null;
        try {
            s = br.readLine();
            br.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

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

        // Date型変換
        Date formatDate = null;
        try {
            formatDate = sdf.parse(s);
        } catch (ParseException e) {
            e.printStackTrace();
        }

        Date compareDate = null;
        try {
            compareDate = sdf.parse("2019/04/30");
        } catch (ParseException e) {}

        if (formatDate.after(compareDate)) { // formatDate(2019/05/01...) > compareDate(2019/04/30)
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    } InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) String s = null; s null try {
            s = br.readLine();
            br.close();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } IOException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            s = br.readLine();
            br.close();
        } s = br.readLine() s br.readLine() br.readLine br br.close() br.close br SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); sdf new SimpleDateFormat("yyyy/MM/dd") Date formatDate = null; formatDate null try {
            formatDate = sdf.parse(s);
        } catch (ParseException e) {
            e.printStackTrace();
        } catch (ParseException e) {
            e.printStackTrace();
        } ParseException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            formatDate = sdf.parse(s);
        } formatDate = sdf.parse(s) formatDate sdf.parse(s) sdf.parse sdf s Date compareDate = null; compareDate null try {
            compareDate = sdf.parse("2019/04/30");
        } catch (ParseException e) {} catch (ParseException e) {} ParseException e {} {
            compareDate = sdf.parse("2019/04/30");
        } compareDate = sdf.parse("2019/04/30") compareDate sdf.parse("2019/04/30") sdf.parse sdf "2019/04/30" if (formatDate.after(compareDate)) { // formatDate(2019/05/01...) > compareDate(2019/04/30)
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        } formatDate.after(compareDate) formatDate.after formatDate compareDate { // formatDate(2019/05/01...) > compareDate(2019/04/30)
            System.out.println("TBD");
        } System.out.println("TBD") System.out.println System.out System System.out "TBD" {
            System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" String[] args args public class Main {
    public static void main(String[] args) {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);

        String s = null;
        try {
            s = br.readLine();
            br.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

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

        // Date型変換
        Date formatDate = null;
        try {
            formatDate = sdf.parse(s);
        } catch (ParseException e) {
            e.printStackTrace();
        }

        Date compareDate = null;
        try {
            compareDate = sdf.parse("2019/04/30");
        } catch (ParseException e) {}

        if (formatDate.after(compareDate)) { // formatDate(2019/05/01...) > compareDate(2019/04/30)
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    }
} public class Main {
    public static void main(String[] args) {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);

        String s = null;
        try {
            s = br.readLine();
            br.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

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

        // Date型変換
        Date formatDate = null;
        try {
            formatDate = sdf.parse(s);
        } catch (ParseException e) {
            e.printStackTrace();
        }

        Date compareDate = null;
        try {
            compareDate = sdf.parse("2019/04/30");
        } catch (ParseException e) {}

        if (formatDate.after(compareDate)) { // formatDate(2019/05/01...) > compareDate(2019/04/30)
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static void main(String[] args) {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);

        String s = null;
        try {
            s = br.readLine();
            br.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

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

        // Date型変換
        Date formatDate = null;
        try {
            formatDate = sdf.parse(s);
        } catch (ParseException e) {
            e.printStackTrace();
        }

        Date compareDate = null;
        try {
            compareDate = sdf.parse("2019/04/30");
        } catch (ParseException e) {}

        if (formatDate.after(compareDate)) { // formatDate(2019/05/01...) > compareDate(2019/04/30)
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    }
}
