The letter 'L, M, N, O, P, R, S and T' in their order are substituted by nine integers 1 to 9 but not in that order. 4 is assigned to 'P'. The difference between 'P' and 'T' is 5. The difference between 'N' and 'T' is 3. What is the integer assigned to 'N'?