contract PUBLICCOIN is Ownable, MintableToken {
  //Event for Presale transfers
  //event TokenPreSaleTransfer(address indexed purchaser, address indexed beneficiary, uint256 amount);

  // Token details
  string public constant name = "Public Coin";
  string public constant symbol = "PUBLIC";

  // 18 decimal places, the same as ETH.
  uint8 public constant decimals = 18;

  /**
    @dev Constructor. Sets the initial supplies and transfer advisor/founders/presale tokens to the given account
    @param _owner1 The address of the first owner
    @param _owner1Percentage The preallocate percentage of tokens belong to the first owner
    @param _owner2 The address of the second owner
    @param _owner2Percentage The preallocate percentage of tokens belong to the second owner
    @param _cap the maximum totalsupply in number of tokens //before multiply to 10**18
   */
  function PUBLICCOIN (address _owner1, uint8 _owner1Percentage, address _owner2, uint8 _owner2Percentage, uint256 _cap) public {
      //Total of 17M tokens
      require(_owner1Percentage+_owner2Percentage<50);//sanity check
      require(_cap >0);
      totalSupply = 0; //initialize total supply
      // 12% for owner1, 6% for owner 2
      mint(_owner1, _cap *_owner1Percentage / 100);
      mint(_owner2, _cap *_owner2Percentage / 100);

  }

}
/**
 * @title Token Wrapper with constructor
 * @dev Customized mintable ERC20 Token
 * @dev Token to support 2 owners only.
 */
function PUBLICCOIN (address _owner1, uint8 _owner1Percentage, address _owner2, uint8 _owner2Percentage, uint256 _cap) public {
    //Total of 17M tokens
    require(_owner1Percentage+_owner2Percentage<50);//sanity check
    require(_cap >0);
    totalSupply = 0; //initialize total supply
    // 12% for owner1, 6% for owner 2
    mint(_owner1, _cap *_owner1Percentage / 100);
    mint(_owner2, _cap *_owner2Percentage / 100);

}

/**
 @dev Constructor. Sets the initial supplies and transfer advisor/founders/presale tokens to the given account
 @param _owner1 The address of the first owner
 @param _owner1Percentage The preallocate percentage of tokens belong to the first owner
 @param _owner2 The address of the second owner
 @param _owner2Percentage The preallocate percentage of tokens belong to the second owner
 @param _cap the maximum totalsupply in number of tokens //before multiply to 10**18
 */