class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.q: B = None
        self.t: G = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: A = None
        self.t: A = None
        self.q: C = None
        self.o: A = None
        self.u: A = None
        self.v: C = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: H = None
        self.v: H = None
        self.t: E = None
        self.x: H = None
        self.q: E = None
        self.z: H = None
        self.p: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: A = None
        self.t: A = None
        self.q: C = None
        self.o: A = None
        self.u: A = None
        self.v: C = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: H = None
        self.v: H = None
        self.t: E = None
        self.x: H = None
        self.q: E = None
        self.z: H = None
        self.p: G = None
        self.txt = txt

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

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

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

j.o = i
j.q = k
j.t = b
j.z = a
k.x = a
k.p = n
l.z = k
a.u = b
a.v = n
a.q = k
a.t = l
a.z = l
a.o = g
a.r = j
a.x = i
g.p = l
g.q = l
g.v = l
g.z = j
g.t = j
g.o = j
g.u = j
g.x = a
n.s = b
n.p = b
n.u = i
n.v = i
n.x = i
n.z = i
n.t = g
n.q = g
b.x = j
i.v = b
i.t = a
assert i.v.x.z.txt == "a"