知恵が回る (ちえがまわる) — to be quick-witted | Kumi Dictionary