class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: C = None
        self.s: C = None
        self.p: H = None
        self.t: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: D = None
        self.v: H = None
        self.z: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: H = None
        self.y: F = None
        self.z: E = None
        self.w: B = None
        self.p: A = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: G = None
        self.r: G = None
        self.y: B = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: I = None
        self.p: A = None
        self.v: B = None
        self.u: F = None
        self.q: F = None
        self.r: F = None
        self.s: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: B = None
        self.p: H = None
        self.o: E = None
        self.y: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: D = None
        self.v: H = None
        self.z: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: H = None
        self.y: F = None
        self.z: E = None
        self.w: B = None
        self.p: A = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: G = None
        self.r: G = None
        self.y: B = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: I = None
        self.p: A = None
        self.v: B = None
        self.u: F = None
        self.q: F = None
        self.r: F = None
        self.s: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: B = None
        self.p: H = None
        self.o: E = None
        self.y: C = None
        self.txt = txt

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

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