Employee was attempting to drive shaft out of sprocket/shaft assembly. To do this it was required that he lift this assembly onto two railroad ties to allow room for shaft to be driven out of sproket when hit from above. When employee set sprocket onto tie #2 he mis-judged the location of the tie and caught thumb between sprocket and railroad tie.