import java.rmi.*;
import java.rmi.server.UnicastRemoteObject;

public class HelloImpl
        extends UnicastRemoteObject
        implements Hello {
    private String name;
    public HelloImpl(String s)
            throws java.rmi.RemoteException {
        super();
        name = s;
    }

    public String sayHello() throws RemoteException {
        return "Hello from Venus!";
    }

    public static void main(String args[]) {
        System.setSecurityManager(new  RMISecurityManager());
        try {
            HelloImpl obj = new HelloImpl("HelloServer");
            Naming.rebind("HelloServer", obj);
        } catch (Exception e) {}
    }
}