The * is used to suppress input.
scanf(" %d %*d %*d%*d %d ", &i, &j)
If your input is 10 20 30 40 50, i will get the value 10 and j will get the value 50.