Japan's economy shrinks as inflation takes toll