NOVELTY - The arrangement (108) has processing environments that are set with chambers (1101,1102) with the elevated temperatures for heating biomass (108a) to remove humidity and to eliminate biological activity of biomass and to produce biofuel. The processing environments are made to receive biomass, and are coupled by coupling unit (1113). The transferring units (1105,1107) are set to transfer biomass via processing environment during respective time periods. The outputting units (1108,1111) are made to produce and output two different types of biofuel between the processing environments.    USE - Arrangement for producing two types of biofuel such as bio-coal, pellet, torrefied biomass, drying agent and carbon based gases of biomass such as dry manure and livestock manure from cattle, pig or poultry farms, industrial or municipal waste, waste foodstuff, and dry biomass or organic feedstock of biomass of waste stream.    ADVANTAGE - The energy efficient and self- sustaining arrangement for producing two types of biofuel of biomass of waste stream is achieved. The biofuel is produced from biomass easily at low cost.    DETAILED DESCRIPTION - The different types of biofuel are adjusted by manipulating the mass flow from the first processing environment, and the opening time of the locking element of the second processing environment so that the longer the opening time of the locking element of the second processing environment is ensured and the greater portion of the first type of biofuel is fed to the second processing environment. The coupling unit is provided with two locking elements and a conduit. The chambers are provided with low pressure ducts (1109,1110) to suck superfluous volatiles such as water vapor and oxygen released from the biomass during the first time period, and to suck carbon based gases released from the biomass during the second time period. The gases and volatiles are transferred outside the chambers. A separator is provided to partially separates liquid fraction into the liquid waste container and solid fraction into the solid waste container from the waste stream. The second separator is connected with the solid waste container for separating liquid fraction into the liquid waste container from the solid fraction of the solid waste containers. A ripper is made to rip the dry manure waste into smaller portions before introducing into the separator or liquid waste container. The surface with anaerobic micro-organisms is arranged into multiple units comprising maximal surface area for micro-organisms. An introduction unit is made to introduce additional organic waste material into the solid waste container. An INDEPENDENT CLAIM is included for the method for producing two types of biofuel of dry biomass of waste stream, involves heating the biomass in processing environments with elevated temperatures of 160-200 degrees C and 360-400 degrees C in order to produce biofuel. The biomass is received into first processing environment. The temperature is gained from the thermochemical treatment process of biomass in second processing environment. The length of first and second time periods is between 20-40 minutes, and advantageously about 30 minutes.    DESCRIPTION OF DRAWING(S) - The drawing shows a schematic view of the arrangement for producing two types of biofuel of biomass of waste stream.    Arrangement for producing two types of biofuel of biomass of waste stream (108)    Biomass (108a)    Chambers (1101,1102)    Transferring units (1105,1107)    Outputting units (1108,1111)    Low pressure ducts (1109,1110)    Coupling unit (1113)