Japan economy shrinks on Thai floods, strong yen