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

public class Main {
    public static void main(String[] args) {
        try { 
            Scanner scanner = new Scanner(System.in);
            String input_str = scanner.next();
            scanner.close();
            SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
            Date input_date = sdFormat.parse(input_str);
            Date standard_date = sdFormat.parse("2019/04/30");
            if (input_date.compareTo(standard_date) > 0) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }

    Main() {
    }
} import java.util.Scanner; Scanner java.util import java.util.Date; Date java.util import java.text.ParseException; ParseException java.text import java.text.SimpleDateFormat; SimpleDateFormat java.text public class Main {
    public static void main(String[] args) {
        try { 
            Scanner scanner = new Scanner(System.in);
            String input_str = scanner.next();
            scanner.close();
            SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
            Date input_date = sdFormat.parse(input_str);
            Date standard_date = sdFormat.parse("2019/04/30");
            if (input_date.compareTo(standard_date) > 0) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }

    Main() {
    }
} Main public static void main(String[] args) {
        try { 
            Scanner scanner = new Scanner(System.in);
            String input_str = scanner.next();
            scanner.close();
            SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
            Date input_date = sdFormat.parse(input_str);
            Date standard_date = sdFormat.parse("2019/04/30");
            if (input_date.compareTo(standard_date) > 0) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    } main {
        try { 
            Scanner scanner = new Scanner(System.in);
            String input_str = scanner.next();
            scanner.close();
            SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
            Date input_date = sdFormat.parse(input_str);
            Date standard_date = sdFormat.parse("2019/04/30");
            if (input_date.compareTo(standard_date) > 0) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    } try { 
            Scanner scanner = new Scanner(System.in);
            String input_str = scanner.next();
            scanner.close();
            SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
            Date input_date = sdFormat.parse(input_str);
            Date standard_date = sdFormat.parse("2019/04/30");
            if (input_date.compareTo(standard_date) > 0) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (ParseException e) {
            e.printStackTrace();
        } catch (ParseException e) {
            e.printStackTrace();
        } ParseException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e { 
            Scanner scanner = new Scanner(System.in);
            String input_str = scanner.next();
            scanner.close();
            SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
            Date input_date = sdFormat.parse(input_str);
            Date standard_date = sdFormat.parse("2019/04/30");
            if (input_date.compareTo(standard_date) > 0) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String input_str = scanner.next(); input_str scanner.next() scanner.next scanner scanner.close() scanner.close scanner SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd"); sdFormat new SimpleDateFormat("yyyy/MM/dd") Date input_date = sdFormat.parse(input_str); input_date sdFormat.parse(input_str) sdFormat.parse sdFormat input_str Date standard_date = sdFormat.parse("2019/04/30"); standard_date sdFormat.parse("2019/04/30") sdFormat.parse sdFormat "2019/04/30" if (input_date.compareTo(standard_date) > 0) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            } input_date.compareTo(standard_date) > 0 input_date.compareTo(standard_date) input_date.compareTo input_date standard_date 0 {
                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 Main() {
    } Main {
    } public class Main {
    public static void main(String[] args) {
        try { 
            Scanner scanner = new Scanner(System.in);
            String input_str = scanner.next();
            scanner.close();
            SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
            Date input_date = sdFormat.parse(input_str);
            Date standard_date = sdFormat.parse("2019/04/30");
            if (input_date.compareTo(standard_date) > 0) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }

    Main() {
    }
} public class Main {
    public static void main(String[] args) {
        try { 
            Scanner scanner = new Scanner(System.in);
            String input_str = scanner.next();
            scanner.close();
            SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
            Date input_date = sdFormat.parse(input_str);
            Date standard_date = sdFormat.parse("2019/04/30");
            if (input_date.compareTo(standard_date) > 0) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }

    Main() {
    }
} Main
import java.util.Scanner;
import java.util.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;

public class Main {
    public static void main(String[] args) {
        try { 
            Scanner scanner = new Scanner(System.in);
            String input_str = scanner.next();
            scanner.close();
            SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
            Date input_date = sdFormat.parse(input_str);
            Date standard_date = sdFormat.parse("2019/04/30");
            if (input_date.compareTo(standard_date) > 0) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }

    Main() {
    }
}
