class A:
    def __init__(self, txt: str):
        self.o: B = None
        self.s: H = None
        self.q: B = None
        self.w: E = None
        self.z: D = None
        self.v: G = None
        self.r: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: D = None
        self.v: D = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: F = None
        self.s: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: A = None
        self.z: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: D = None
        self.v: D = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: F = None
        self.s: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: A = None
        self.z: E = None
        self.txt = txt

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

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