class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: D = None
        self.z: F = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: A = None
        self.o: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: G = None
        self.txt = txt

k = A("k")
b = B("b")
g = C("g")
f = D("f")
a = E("a")
i = F("i")
l = G("l")
e = H("e")
h = E("h")
j = C("j")

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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: D = None
        self.z: F = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: A = None
        self.o: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: G = None
        self.txt = txt

k = A("k")
b = B("b")
g = C("g")
f = D("f")
a = E("a")
i = F("i")
l = G("l")
e = H("e")
h = E("h")
j = C("j")

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