import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("/");

        List<Integer> list = new ArrayList<>();
        for (String i : s) {
            list.add(Integer.parseInt(i));
        }
      
        String result = "TBD";
        if (list.get(1) < 5) result = "Heisei";
        
        System.out.println(result);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("/");

        List<Integer> list = new ArrayList<>();
        for (String i : s) {
            list.add(Integer.parseInt(i));
        }
      
        String result = "TBD";
        if (list.get(1) < 5) result = "Heisei";
        
        System.out.println(result);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("/");

        List<Integer> list = new ArrayList<>();
        for (String i : s) {
            list.add(Integer.parseInt(i));
        }
      
        String result = "TBD";
        if (list.get(1) < 5) result = "Heisei";
        
        System.out.println(result);
    } main {
        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("/");

        List<Integer> list = new ArrayList<>();
        for (String i : s) {
            list.add(Integer.parseInt(i));
        }
      
        String result = "TBD";
        if (list.get(1) < 5) result = "Heisei";
        
        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] s = sc.next().split("/"); s sc.next().split("/") sc.next().split sc.next() sc.next sc "/" List<Integer> list = new ArrayList<>(); list new ArrayList<>() for (String i : s) {
            list.add(Integer.parseInt(i));
        } String i s {
            list.add(Integer.parseInt(i));
        } {
            list.add(Integer.parseInt(i));
        } list.add(Integer.parseInt(i)) list.add list Integer.parseInt(i) Integer.parseInt Integer i String result = "TBD"; result "TBD" if (list.get(1) < 5) result = "Heisei"; list.get(1) < 5 list.get(1) list.get list 1 5 result = "Heisei" result "Heisei" System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("/");

        List<Integer> list = new ArrayList<>();
        for (String i : s) {
            list.add(Integer.parseInt(i));
        }
      
        String result = "TBD";
        if (list.get(1) < 5) result = "Heisei";
        
        System.out.println(result);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("/");

        List<Integer> list = new ArrayList<>();
        for (String i : s) {
            list.add(Integer.parseInt(i));
        }
      
        String result = "TBD";
        if (list.get(1) < 5) result = "Heisei";
        
        System.out.println(result);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("/");

        List<Integer> list = new ArrayList<>();
        for (String i : s) {
            list.add(Integer.parseInt(i));
        }
      
        String result = "TBD";
        if (list.get(1) < 5) result = "Heisei";
        
        System.out.println(result);
    }
}
