@Raju Kalagoni, here I didn't show the part of find JK, (its my bad) since, in this case it will be same. But, better approach is to find the JK part for each J0K0, J1K1, and J2K2, otherwise we may not get the right answer. To be safer side we should find the JK part as well.