class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: D = None
        self.u: G = None
        self.o: I = None
        self.y: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: F = None
        self.s: E = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: A = None
        self.p: C = None
        self.r: G = None
        self.u: G = None
        self.v: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: D = None
        self.p: C = None
        self.w: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: F = None
        self.s: E = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: A = None
        self.p: C = None
        self.r: G = None
        self.u: G = None
        self.v: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: D = None
        self.p: C = None
        self.w: H = None
        self.txt = txt

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

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