divided input process in two