Format string for ```n``` should be ```%d```.