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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: D = None
        self.x: H = None
        self.q: F = None
        self.y: G = None
        self.s: F = None
        self.p: D = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: G = None
        self.q: H = None
        self.v: E = None
        self.s: A = None
        self.r: A = None
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: A = None
        self.w: B = None
        self.r: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: B = None
        self.u: I = None
        self.v: G = None
        self.w: B = None
        self.r: F = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: F = None
        self.t: D = None
        self.x: C = None
        self.o: G = None
        self.r: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: D = None
        self.x: H = None
        self.q: F = None
        self.y: G = None
        self.s: F = None
        self.p: D = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: G = None
        self.q: H = None
        self.v: E = None
        self.s: A = None
        self.r: A = None
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: A = None
        self.w: B = None
        self.r: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: B = None
        self.u: I = None
        self.v: G = None
        self.w: B = None
        self.r: F = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: F = None
        self.t: D = None
        self.x: C = None
        self.o: G = None
        self.r: E = None
        self.txt = txt

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

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