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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: F = None
        self.z: E = None
        self.r: C = None
        self.y: E = None
        self.w: F = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: C = None
        self.z: H = None
        self.q: H = None
        self.o: A = None
        self.s: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: G = None
        self.z: B = None
        self.p: B = None
        self.y: C = None
        self.o: F = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: F = None
        self.z: E = None
        self.r: C = None
        self.y: E = None
        self.w: F = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: C = None
        self.z: H = None
        self.q: H = None
        self.o: A = None
        self.s: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: G = None
        self.z: B = None
        self.p: B = None
        self.y: C = None
        self.o: F = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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