def main():
    
    
    A, B = map(float,input().split())
    
    if A == 0:
        return 0

    else:
        AB = A*(B*100)
        
        if AB > 1e18:
            return -1
        
        else:
            return int(AB/100)
        
    
print(main())