import java.util.Scanner;

public class StudentResult {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int score = sc.nextInt();           // student’s score
        boolean hasRecommendation = sc.nextBoolean(); // true or false

        if (score >= 50 || hasRecommendation) {
            System.out.println("The student passes");
        } else {
            System.out.println("The student fails");
        }

        sc.close();
    }
}