A bug flew into the room through an open window. The distance from the bug to the ceiling changed with a speed of 1 m/s, the distance to the wall opposite to the window changed with a speed of 2 m/s, to the side wall - with a speed of 2 m/s. After 1 s of flight the bug hit the corner between the ceiling and the side wall of the room. Determine the speed of the bug's flight and the position in the window through which it flew into the room. The room is 2.5 m high, 4 m wide, and 4 m long.