import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class Main {

    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            String s = br.readLine();
            DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
            LocalDate date = LocalDate.parse(s, dateTimeFormatter);
            LocalDate date0430 = LocalDate.of(2019, 4, 30);
            if (date.isAfter(date0430)) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.time.LocalDate; LocalDate java.time import java.time.format.DateTimeFormatter; DateTimeFormatter java.time.format public class Main {

    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            String s = br.readLine();
            DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
            LocalDate date = LocalDate.parse(s, dateTimeFormatter);
            LocalDate date0430 = LocalDate.of(2019, 4, 30);
            if (date.isAfter(date0430)) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
} Main public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            String s = br.readLine();
            DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
            LocalDate date = LocalDate.parse(s, dateTimeFormatter);
            LocalDate date0430 = LocalDate.of(2019, 4, 30);
            if (date.isAfter(date0430)) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            String s = br.readLine();
            DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
            LocalDate date = LocalDate.parse(s, dateTimeFormatter);
            LocalDate date0430 = LocalDate.of(2019, 4, 30);
            if (date.isAfter(date0430)) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try {
            String s = br.readLine();
            DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
            LocalDate date = LocalDate.parse(s, dateTimeFormatter);
            LocalDate date0430 = LocalDate.of(2019, 4, 30);
            if (date.isAfter(date0430)) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (IOException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } IOException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            String s = br.readLine();
            DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
            LocalDate date = LocalDate.parse(s, dateTimeFormatter);
            LocalDate date0430 = LocalDate.of(2019, 4, 30);
            if (date.isAfter(date0430)) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } String s = br.readLine(); s br.readLine() br.readLine br DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd"); dateTimeFormatter DateTimeFormatter.ofPattern("yyyy/MM/dd") DateTimeFormatter.ofPattern DateTimeFormatter "yyyy/MM/dd" LocalDate date = LocalDate.parse(s, dateTimeFormatter); date LocalDate.parse(s, dateTimeFormatter) LocalDate.parse LocalDate s dateTimeFormatter LocalDate date0430 = LocalDate.of(2019, 4, 30); date0430 LocalDate.of(2019, 4, 30) LocalDate.of LocalDate 2019 4 30 if (date.isAfter(date0430)) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            } date.isAfter(date0430) date.isAfter date date0430 {
                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) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            String s = br.readLine();
            DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
            LocalDate date = LocalDate.parse(s, dateTimeFormatter);
            LocalDate date0430 = LocalDate.of(2019, 4, 30);
            if (date.isAfter(date0430)) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
} public class Main {

    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            String s = br.readLine();
            DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
            LocalDate date = LocalDate.parse(s, dateTimeFormatter);
            LocalDate date0430 = LocalDate.of(2019, 4, 30);
            if (date.isAfter(date0430)) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class Main {

    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            String s = br.readLine();
            DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
            LocalDate date = LocalDate.parse(s, dateTimeFormatter);
            LocalDate date0430 = LocalDate.of(2019, 4, 30);
            if (date.isAfter(date0430)) {
                System.out.println("TBD");
            } else {
                System.out.println("Heisei");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}