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

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: D = None
        self.x: A = None
        self.z: C = None
        self.q: D = None
        self.t: G = None
        self.s: C = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: G = None
        self.r: A = None
        self.v: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.z: G = None
        self.t: H = None
        self.p: A = None
        self.r: G = None
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: I = None
        self.p: D = None
        self.q: D = None
        self.w: E = None
        self.o: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: B = None
        self.w: A = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: C = None
        self.q: F = None
        self.w: D = None
        self.txt = txt

a = A("a")
b = B("b")
m = C("m")
d = D("d")
k = E("k")
j = F("j")
g = G("g")
e = H("e")
c = I("c")
l = D("l")

a.x = c
a.w = e
a.t = e
a.y = j
a.u = j
a.q = l
a.v = g
b.u = a
b.x = a
b.o = a
b.r = d
b.z = m
b.s = m
b.q = l
b.t = g
m.y = l
m.q = g
m.v = g
m.r = a
d.v = c
d.w = c
d.p = g
d.t = g
d.r = k
d.q = k
d.o = a
d.z = e
d.y = j
k.y = g
k.z = g
k.r = g
k.t = e
k.s = e
k.p = a
j.u = m
j.r = c
j.p = d
j.q = d
j.w = k
j.o = b
g.v = c
g.q = m
g.z = k
g.y = e
g.x = l
g.u = b
g.s = j
e.q = l
e.x = b
e.w = a
e.s = m
c.v = k
c.t = m
c.q = j
c.w = d
l.v = c
l.w = c
l.p = g
l.t = g
l.r = k
l.q = k
l.o = a
l.z = e
l.y = j
assert k.p.q.o.q.txt == "
class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: H = None
        self.y: F = None
        self.t: H = None
        self.q: D = None
        self.u: F = None
        self.v: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: D = None
        self.x: A = None
        self.z: C = None
        self.q: D = None
        self.t: G = None
        self.s: C = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: G = None
        self.r: A = None
        self.v: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.z: G = None
        self.t: H = None
        self.p: A = None
        self.r: G = None
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: I = None
        self.p: D = None
        self.q: D = None
        self.w: E = None
        self.o: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: B = None
        self.w: A = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: C = None
        self.q: F = None
        self.w: D = None
        self.txt = txt

a = A("a")
b = B("b")
m = C("m")
d = D("d")
k = E("k")
j = F("j")
g = G("g")
e = H("e")
c = I("c")
l = D("l")

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