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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: E = None
        self.q: D = None
        self.v: G = None
        self.t: E = None
        self.y: D = None
        self.u: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: C = None
        self.w: C = None
        self.v: D = None
        self.q: C = None
        self.r: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: F = None
        self.y: A = None
        self.s: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: E = None
        self.q: D = None
        self.v: G = None
        self.t: E = None
        self.y: D = None
        self.u: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: C = None
        self.w: C = None
        self.v: D = None
        self.q: C = None
        self.r: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: F = None
        self.y: A = None
        self.s: G = None
        self.txt = txt

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

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