Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner Scanner = new Scanner(System.in);
- String label = Scanner.nextLine();
- int rank = Scanner.nextInt();
- if(rank % 2 == 0) {
- if (label.equals("b") || label.equals("d") || label.equals("f") || label.equals("h")) {
- System.out.println("dark");
- } else {
- System.out.println("light");
- }
- }if (label.equals("b") || label.equals("d") || label.equals("f") || label.equals("h")) {
- System.out.println("light");
- } else {
- System.out.println("dark");}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement