mport java.util.*;
import java.io.*;
import java.math.*;

/**
 *  * CodinGame planet is being attacked by slimy insectoid aliens.
 *   * <---
 *    * Hint:To protect the planet, you can implement the pseudo-code provided in the statement, below the player.
 *     **/
class Player {

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

		// game loop
		while (true) {
			String enemy1 = in.next(); // name of enemy 1
			int dist1 = in.nextInt(); // distance to enemy 1
			String enemy2 = in.next(); // name of enemy 2
			int dist2 = in.nextInt(); // distance to enemy 2
			// Write an action using System.out.println()
			// To debug: System.err.println("Debug messages...");
			if(dist1 <= dist2){
				System.out.println(enemy1); // You have to output a correct ship name to shoot ("Buzz", enemy1, enemy2, ...)
			}else {
				System.out.println(enemy2);
			}
			//System.out.println("name of the enemy"); // You have to output a correct ship name to shoot ("Buzz", enemy1, enemy2, ...)
		}
	}
}

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

/**
 *  * CodinGame planet is being attacked by slimy insectoid aliens.
 *   * <---
 *    * Hint:To protect the planet, you can implement the pseudo-code provided in the statement, below the player.
 *     **/
class Player {

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

		// game loop
		while (true) {
			String enemy1 = in.next(); // name of enemy 1
			int dist1 = in.nextInt(); // distance to enemy 1
			String enemy2 = in.next(); // name of enemy 2
			int dist2 = in.nextInt(); // distance to enemy 2
			// Write an action using System.out.println()
			// To debug: System.err.println("Debug messages...");
			if(dist1 <= dist2){
				System.out.println(enemy1); // You have to output a correct ship name to shoot ("Buzz", enemy1, enemy2, ...)
			}else {
				System.out.println(enemy2);
			}
			//System.out.println("name of the enemy"); // You have to output a correct ship name to shoot ("Buzz", enemy1, enemy2, ...)
		}
	}
}

fix code