gets.to_i.times{ gets 6.times{ x,y = gets.split.map(&:to_f) ans = Math.atan2(y,x) * 180 / Math::PI if ans >= -0.1 && ans <= 50.1 p ans end } }