class Version implements Comparable<Version> {

    @Override
    public String toString() {
        StringBuilder msg = new StringBuilder();
        msg.append(this.major).append('.').append(this.minor);
        if (this.point > 0) {
            msg.append('.').append(this.point);
        }
        return msg.toString();
    }

    public  Version(int maj, int minor);
    public  Version(int maj, int minor, int point);
    public  Version(String ver);

}