Language: Java

import java.io.InputStream;
import java.io.PrintWriter;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;

import static java.util.Comparator.*;

public class Main {
    public static void main(String[] args) {
        PrintWriter out = new PrintWriter(System.out);
        Solver solver = new Solver(System.in, out);
        solver.solve();
        out.close();
    }
}
class Solver {
	Scanner sc;
	PrintWriter out;
    public Solver(InputStream in, PrintWriter out) {
    	sc = new Scanner(in);
    	this.out = out;
    }
    // ==================================================================
    public void solve() {
    	int N = Integer.parseInt(sc.next());
    	double NN = N;
    	double XX = NN / 1.08;
    	int X = (int)XX;
    	int wk = (int)((double)X * 1.08);
    	if(wk == N)		out.println(X);
    	else			out.println(":(");
    }
    // ==================================================================
}
class PP{
	public int key, val;
	public PP(int key, int val) {
		this.key = key;
		this.val = val;
	}
	public int getKey() {
		return key;
	}
	public int getVal() {
		return val;
	}
}
import java.io.InputStream;
import java.io.PrintWriter;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;

import static java.util.Comparator.*;

public class Main {
    public static void main(String[] args) {
        PrintWriter out = new PrintWriter(System.out);
        Solver solver = new Solver(System.in, out);
        solver.solve();
        out.close();
    }
}
class Solver {
	Scanner sc;
	PrintWriter out;
    public Solver(InputStream in, PrintWriter out) {
    	sc = new Scanner(in);
    	this.out = out;
    }
    // ==================================================================
    public void solve() {
    	int N = Integer.parseInt(sc.next());
    	double NN = N;
    	double XX = NN / 1.08;
    	int X = (int)XX;
    	int wk = (int)((double)X * 1.08);
    	if(wk == N)		out.println(X);
    	else			out.println(":(");
    }
    // ==================================================================
}
class PP{
	public int key, val;
	public PP(int key, int val) {
		this.key = key;
		this.val = val;
	}
	public int getKey() {
		return key;
	}
	public int getVal() {
		return val;
	}
}


Compiler output:
Main.java:54: error: class, interface, enum, or record expected
import java.io.InputStream;
^
Main.java:55: error: class, interface, enum, or record expected
import java.io.PrintWriter;
^
Main.java:56: error: class, interface, enum, or record expected
import java.lang.reflect.Array;
^
Main.java:57: error: class, interface, enum, or record expected
import java.util.ArrayList;
^
Main.java:58: error: class, interface, enum, or record expected
import java.util.Arrays;
^
Main.java:59: error: class, interface, enum, or record expected
import java.util.HashSet;
^
Main.java:60: error: class, interface, enum, or record expected
import java.util.List;
^
Main.java:61: error: class, interface, enum, or record expected
import java.util.Scanner;
^
Main.java:62: error: class, interface, enum, or record expected
import java.util.Set;
^
Main.java:63: error: class, interface, enum, or record expected
import java.util.TreeSet;
^
Main.java:65: error: class, interface, enum, or record expected
import static java.util.Comparator.*;
^
11 errors