TOKYO - Japan's economy unexpectedly shrank at an annualized real rate of 1.2 percent in the July-September period, the first contraction in four quarters, government data showed Tuesday after imports surged and private consumption was sluggish as accelerating inflation dampened sentiment.