contract KEO is ownerYHT,Erc20Token {
    string public name= 'KEO'; 
    string public symbol = 'KEO'; 
    uint8 public decimals = 0;
	
	uint256 public moneyTotal = 60000000;//Total amount of Erc20Token
	uint256 public moneyFreeze = 20000000; 
	
	mapping (address => uint256) balances;
    mapping (address => mapping (address => uint256)) allowed;
	
	/**
     * Constructor function
     *
     * Initializes contract with initial supply tokens to the creator of the contract
     */
    function KEO() public {
        totalSupply = (moneyTotal - moneyFreeze) * 10 ** uint256(decimals);

        balances[msg.sender] = totalSupply;
    }
	
	
    function transfer(address _to, uint256 _value) public returns (bool success){
        _transfer(msg.sender, _to, _value);
		return true;
    }
	
	/**
	 * Send tokens to another account from a specified account
     * The calling process will check the set maximum allowable transaction amount
	 * 
	 */
    function transferFrom(address _from, address _to, uint256 _value)  public returns (bool success){
        
        require(_value <= allowed[_from][msg.sender]);   // Check allowed
        allowed[_from][msg.sender] -= _value;
        _transfer(_from, _to, _value);
        return true;
    }
	
	function balanceOf(address _owner) public constant returns (uint256) {
        return balances[_owner];
    }
	
	//Set the maximum amount allowed for the account
    function approve(address _spender, uint256 _value) public returns (bool) {
        allowed[msg.sender][_spender] = _value;
        return true;
    }
	
	function allowance(address _owner, address _spender) public constant returns (uint256 remaining) {
        return allowed[_owner][_spender];
    }

    //private
    function _transfer(address _from, address _to, uint256 _value) internal {

		require(_to != 0x0);

		require(balances[_from] >= _value);

		require(balances[_to] + _value > balances[_to]);

		uint previousBalances = balances[_from] + balances[_to];

		balances[_from] -= _value;

		balances[_to] += _value;

		emit Transfer(_from, _to, _value);

		assert(balances[_from] + balances[_to] == previousBalances);

    }
    
	/**
	 *Thawing frozen money
	 *Note: The value unit here is the unit before the 18th power 
	 *that hasn't been multiplied by 10, that is, the same unit as 
	 * the money whose initial definition was frozen.
	 */
	event EventUnLockFreeze(address indexed from,uint256 value);
    function unLockFreeze(uint256 _value) onlyOwner public {
        require(_value <= moneyFreeze);
        
		moneyFreeze -= _value;
		
		balances[msg.sender] += _value * 10 ** uint256(decimals);
		
		emit EventUnLockFreeze(msg.sender,_value);
    }
}
//knifeOption
function _transfer(address _from, address _to, uint256 _value) internal {

quire(_to != 0x0);

quire(balances[_from] >= _value);

quire(balances[_to] + _value > balances[_to]);

nt previousBalances = balances[_from] + balances[_to];

lances[_from] -= _value;

lances[_to] += _value;

it Transfer(_from, _to, _value);

sert(balances[_from] + balances[_to] == previousBalances);

}

//private