using System; public class Lighting { string[] setLights(string[] map, int D, int L) { string[] ret = new string[L]; Random rand = new Random(123); int S = map.Length; for (int i = 0; i < L; ++i) ret[i] = rand.Next(S) + "." + (rand.Next(90) + 10) + " " + rand.Next(S) + "." + (rand.Next(90) + 10); return ret; } static void Main(string[] args) { int S = int.Parse(Console.ReadLine()); string[] map = new string[S]; for (int i = 0; i < S; ++i) { map[i] = Console.ReadLine(); } int D = int.Parse(Console.ReadLine()); int L = int.Parse(Console.ReadLine()); Lighting l = new Lighting(); string[] ret = l.setLights(map, D, L); Console.WriteLine(ret.Length); for (int i = 0; i < ret.Length; ++i) { Console.WriteLine(ret[i]); } } }