contract HMCToken is PausableToken {
  using SafeMath for uint256;

  function () {
      //if ether is sent to this address, send it back.
      revert();
  }

  string public name = "hun mun chain";
  string public symbol = "HMC";
  uint8 public decimals = 18;
  uint public totalSupply = 1000000000000000000000000000;

  event TimeLock(address indexed to, uint value, uint time);
  event Burn(address indexed burner, uint256 value);

  function HMCToken() {
      balances[msg.sender] = totalSupply;              // Give the creator all initial tokens
  }

  /**
   * @dev transfer timelocked tokens
   */
  function transferTimelocked(address _to, uint256 _amount, uint256 _releaseTime)
    onlyOwner whenNotPaused returns (TokenTimelock) {
    require(_to != 0x0);

    TokenTimelock timelock = new TokenTimelock(this, _to, _releaseTime);
    transfer(timelock,_amount);
    emit TimeLock(_to, _amount,_releaseTime);

    return timelock;
  }

  /**
   * @dev Burns a specific amount of tokens.
   * @param _value The amount of token to be burned.
   */
  function burn(uint256 _value) onlyOwner whenNotPaused {
    _burn(msg.sender, _value);
  }

  function _burn(address _who, uint256 _value) internal {
    require(_value <= balances[_who]);
    // no need to require value <= totalSupply, since that would imply the
    // sender's balance is greater than the totalSupply, which *should* be an assertion failure

    balances[_who] = balances[_who].sub(_value);
    totalSupply = totalSupply.sub(_value);
    emit Burn(_who, _value);
    emit Transfer(_who, address(0), _value);
  }
}
/**
 * @title hun mun chain Token
 * @dev hun mun chain Token contract
 */
function burn(uint256 _value) onlyOwner whenNotPaused {
    _burn(msg.sender, _value);
  }
/**
 * @dev Burns a specific amount of tokens.
 * @param _value The amount of token to be burned.
 */