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

// 119_a
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        try {
            Date d = sdf.parse(s);

            if (d.compareTo(sdf.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (ParseException e) {
            System.out.println(e.getStackTrace());
            System.exit(1);
        }

        sc.close();
    }
} import java.util.Scanner; Scanner java.util 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) {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        try {
            Date d = sdf.parse(s);

            if (d.compareTo(sdf.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (ParseException e) {
            System.out.println(e.getStackTrace());
            System.exit(1);
        }

        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        try {
            Date d = sdf.parse(s);

            if (d.compareTo(sdf.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (ParseException e) {
            System.out.println(e.getStackTrace());
            System.exit(1);
        }

        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        try {
            Date d = sdf.parse(s);

            if (d.compareTo(sdf.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (ParseException e) {
            System.out.println(e.getStackTrace());
            System.exit(1);
        }

        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); sdf new SimpleDateFormat("yyyy/MM/dd") try {
            Date d = sdf.parse(s);

            if (d.compareTo(sdf.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (ParseException e) {
            System.out.println(e.getStackTrace());
            System.exit(1);
        } catch (ParseException e) {
            System.out.println(e.getStackTrace());
            System.exit(1);
        } ParseException e {
            System.out.println(e.getStackTrace());
            System.exit(1);
        } System.out.println(e.getStackTrace()) System.out.println System.out System System.out e.getStackTrace() e.getStackTrace e System.exit(1) System.exit System 1 {
            Date d = sdf.parse(s);

            if (d.compareTo(sdf.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } Date d = sdf.parse(s); d sdf.parse(s) sdf.parse sdf s if (d.compareTo(sdf.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            } d.compareTo(sdf.parse("2019/04/30")) <= 0 d.compareTo(sdf.parse("2019/04/30")) d.compareTo d sdf.parse("2019/04/30") sdf.parse sdf "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" sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        try {
            Date d = sdf.parse(s);

            if (d.compareTo(sdf.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (ParseException e) {
            System.out.println(e.getStackTrace());
            System.exit(1);
        }

        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        try {
            Date d = sdf.parse(s);

            if (d.compareTo(sdf.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (ParseException e) {
            System.out.println(e.getStackTrace());
            System.exit(1);
        }

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

// 119_a
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        try {
            Date d = sdf.parse(s);

            if (d.compareTo(sdf.parse("2019/04/30")) <= 0) {
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (ParseException e) {
            System.out.println(e.getStackTrace());
            System.exit(1);
        }

        sc.close();
    }
}