Nathan Coulas

CCC '15 J1 - Special Day

ccc15j1 JAVA8 05 Nov, 2019 1.208s 3 points

Source Code

import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        
        if(a == 2){
            
            if(b == 18){
                System.out.println("Special");
            }else if(b > 18){
                System.out.println("After");
            }else{
                System.out.println("Before");
            }
            
        }else if(a > 2){
            System.out.println("After");
        }else{
            System.out.println("Before");
        }
    }
}