Doctor Q was working in his lab one day when Pi flew in.
Ответ: Doctor Q was working in his lab one day when Pi flew in.