class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: F = None
        self.t: D = None
        self.u: H = None
        self.w: D = None
        self.v: J = None
        self.o: J = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: J = None
        self.o: C = None
        self.q: C = None
        self.p: C = None
        self.r: I = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: D = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.o: A = None
        self.x: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: C = None
        self.txt = txt

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

e.x = c
e.t = c
e.w = c
e.z = j
e.u = g
e.v = i
e.o = i
n.r = f
n.t = g
b.w = n
b.o = n
b.s = n
b.p = g
b.x = h
b.t = j
b.r = j
b.v = f
b.z = i
b.y = c
c.v = f
c.t = i
c.o = b
c.q = b
c.p = b
c.r = l
c.y = l
f.w = h
f.y = c
f.r = b
j.q = n
j.o = e
j.x = i
h.u = b
h.t = e
h.q = g
h.w = l
h.o = j
h.s = j
h.z = f
h.r = c
g.t = j
g.w = j
g.u = i
g.q = l
g.p = l
g.o = l
g.s = h
g.z = h
g.v = b
l.u = h
i.v = e
i.s = b
assert h.t.t.o.t.x.s.txt == "
class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: F = None
        self.t: D = None
        self.u: H = None
        self.w: D = None
        self.v: J = None
        self.o: J = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: J = None
        self.o: C = None
        self.q: C = None
        self.p: C = None
        self.r: I = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: D = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.o: A = None
        self.x: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: C = None
        self.txt = txt

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

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