A sample of radioactive material decays simultaneously by two processes A and B with half-lives 1/2 and 1/4h, respectively. For the first half hour it decays with the process A, next one hour with the process B, and for further half an hour with both A and B. If, originally, there were N0 nuclei, find the number of nuclei after 2 h of such decay.