class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: F = None
        self.s: G = None
        self.q: G = None
        self.z: G = None
        self.y: C = None
        self.u: J = None
        self.p: E = None
        self.w: G = None
        self.r: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.q: D = None
        self.x: E = None
        self.z: C = None
        self.w: E = None
        self.t: D = None
        self.s: F = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: G = None
        self.z: E = None
        self.s: F = None
        self.t: F = None
        self.w: I = None
        self.q: H = None
        self.y: B = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: E = None
        self.w: D = None
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: E = None
        self.r: G = None
        self.t: I = None
        self.w: I = None
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: C = None
        self.r: G = None
        self.p: G = None
        self.u: F = None
        self.z: E = None
        self.t: D = None
        self.q: F = None
        self.w: C = None
        self.v: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: B = None
        self.txt = txt

h = A("h")
j = B("j")
c = C("c")
d = D("d")
l = E("l")
i = F("i")
g = G("g")
m = H("m")
n = I("n")
b = J("b")

h.x = n
h.t = i
h.s = g
h.q = g
h.z = g
h.w = g
h.y = c
h.u = b
h.p = l
h.r = j
j.p = i
j.s = i
j.q = d
j.t = d
j.x = l
j.w = l
j.z = c
j.v = h
c.v = i
c.s = i
c.t = i
c.x = g
c.z = l
c.w = n
c.q = m
c.y = j
c.u = h
d.p = h
d.y = l
l.u = j
l.v = m
i.w = l
g.x = c
g.t = l
g.w = d
g.p = i
m.y = d
m.s = l
m.r = g
m.t = n
m.w = n
m.x = n
n.o = m
n.s = c
n.w = c
n.r = g
n.p = g
n.u = i
n.q = i
n.z = l
n.t = d
n.v = h
b.r = j
b.w = j
assert c.x.p.w.txt == "
class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: F = None
        self.s: G = None
        self.q: G = None
        self.z: G = None
        self.y: C = None
        self.u: J = None
        self.p: E = None
        self.w: G = None
        self.r: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.q: D = None
        self.x: E = None
        self.z: C = None
        self.w: E = None
        self.t: D = None
        self.s: F = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: G = None
        self.z: E = None
        self.s: F = None
        self.t: F = None
        self.w: I = None
        self.q: H = None
        self.y: B = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: E = None
        self.w: D = None
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: E = None
        self.r: G = None
        self.t: I = None
        self.w: I = None
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: C = None
        self.r: G = None
        self.p: G = None
        self.u: F = None
        self.z: E = None
        self.t: D = None
        self.q: F = None
        self.w: C = None
        self.v: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: B = None
        self.txt = txt

h = A("h")
j = B("j")
c = C("c")
d = D("d")
l = E("l")
i = F("i")
g = G("g")
m = H("m")
n = I("n")
b = J("b")

h.x = n
h.t = i
h.s = g
h.q = g
h.z = g
h.w = g
h.y = c
h.u = b
h.p = l
h.r = j
j.p = i
j.s = i
j.q = d
j.t = d
j.x = l
j.w = l
j.z = c
j.v = h
c.v = i
c.s = i
c.t = i
c.x = g
c.z = l
c.w = n
c.q = m
c.y = j
c.u = h
d.p = h
d.y = l
l.u = j
l.v = m
i.w = l
g.x = c
g.t = l
g.w = d
g.p = i
m.y = d
m.s = l
m.r = g
m.t = n
m.w = n
m.x = n
n.o = m
n.s = c
n.w = c
n.r = g
n.p = g
n.u = i
n.q = i
n.z = l
n.t = d
n.v = h
b.r = j
b.w = j
assert c.x.p.w.txt == "l"