A particle is moving along the positive x-axis and at t=0, the particle is at x=0. The acceleration of the particle is a function of time. The acceleration at any time t is given by a=2(1–[t]) where [t] is the greatest integer function. Assuming that the particle is at rest initially, the displacement of the particle in 4 s is