import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] a = sc.nextLine().split("/");
        int y = Integer.parseInt(a[0]);
        int m = Integer.parseInt(a[1]);
        int d = Integer.parseInt(a[2]);
        
        if (y <= 2019 && m <= 4 && d <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] a = sc.nextLine().split("/");
        int y = Integer.parseInt(a[0]);
        int m = Integer.parseInt(a[1]);
        int d = Integer.parseInt(a[2]);
        
        if (y <= 2019 && m <= 4 && d <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] a = sc.nextLine().split("/");
        int y = Integer.parseInt(a[0]);
        int m = Integer.parseInt(a[1]);
        int d = Integer.parseInt(a[2]);
        
        if (y <= 2019 && m <= 4 && d <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String[] a = sc.nextLine().split("/");
        int y = Integer.parseInt(a[0]);
        int m = Integer.parseInt(a[1]);
        int d = Integer.parseInt(a[2]);
        
        if (y <= 2019 && m <= 4 && d <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] a = sc.nextLine().split("/"); a sc.nextLine().split("/") sc.nextLine().split sc.nextLine() sc.nextLine sc "/" int y = Integer.parseInt(a[0]); y Integer.parseInt(a[0]) Integer.parseInt Integer a[0] a 0 int m = Integer.parseInt(a[1]); m Integer.parseInt(a[1]) Integer.parseInt Integer a[1] a 1 int d = Integer.parseInt(a[2]); d Integer.parseInt(a[2]) Integer.parseInt Integer a[2] a 2 if (y <= 2019 && m <= 4 && d <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        } y <= 2019 && m <= 4 && d <= 30 y <= 2019 && m <= 4 && d <= 30 y <= 2019 y 2019 m <= 4 m 4 d <= 30 d 30 {
            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) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] a = sc.nextLine().split("/");
        int y = Integer.parseInt(a[0]);
        int m = Integer.parseInt(a[1]);
        int d = Integer.parseInt(a[2]);
        
        if (y <= 2019 && m <= 4 && d <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] a = sc.nextLine().split("/");
        int y = Integer.parseInt(a[0]);
        int m = Integer.parseInt(a[1]);
        int d = Integer.parseInt(a[2]);
        
        if (y <= 2019 && m <= 4 && d <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] a = sc.nextLine().split("/");
        int y = Integer.parseInt(a[0]);
        int m = Integer.parseInt(a[1]);
        int d = Integer.parseInt(a[2]);
        
        if (y <= 2019 && m <= 4 && d <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
}
