Remove[f];
f[n_Integer] := Do[
If[A == B < n/2 - C, Continue[]]; (* if A == B then C >= H *)
If[A == B == n/2 - C || C == D == n/2 - B, Continue[]]; (* remove kite *)
F = n/\[Pi] ArcTan[(Sin[d] Sin[a + b])/(Sin[a] Sin[c] Sin[e]) -
Cot[e], 1] /. Thread[{a, b, c, d, e} -> \[Pi]/n {A, B, C, D, E}];
F = Round[F, 10^-6];
If[A < F, Continue[]];
If[GCD[A, B, C, D, E, F] != 1, Continue[]];
If[A == E && B < F, Continue[]]; (* if A == E then B >= F *)
If[A == F && B < E, Continue[]]; (* if A == F then B >= E *)
{A, B, C, D, E, F, B + C - F, D + E - A} // Sow;
, {A, n/4 // Ceiling, n - 3}
, {B, Max[1, n - 3 A + 2], Min[A, n - A - 2]}(* B <= A and C < A and H < A *)
, {C, Max[1, n - 2 A - B + 1], Min[A - 1, n - A - B - 1]}(* C < A and H < A *)
, {D, n - A - B - C, A - 1}(* D < A and E <= A *)
, {E, {n - B - C - D}}
] // Reap // Last // If[# == {}, {}, # // Last] &;
Table[f[n] // Length, {n, 30}]
(* 180/n f[n] /. n -> 18 // TableForm *)