class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: E = None
        self.u: D = None
        self.q: I = None
        self.o: E = None
        self.p: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: I = None
        self.v: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: I = None
        self.x: D = None
        self.p: I = None
        self.o: B = None
        self.y: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: F = None
        self.p: H = None
        self.u: D = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: I = None
        self.v: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: I = None
        self.x: D = None
        self.p: I = None
        self.o: B = None
        self.y: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: F = None
        self.p: H = None
        self.u: D = None
        self.txt = txt

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

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