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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: C = None
        self.r: F = None
        self.x: C = None
        self.p: G = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: H = None
        self.v: E = None
        self.p: H = None
        self.t: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: C = None
        self.r: F = None
        self.x: C = None
        self.p: G = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: H = None
        self.v: E = None
        self.p: H = None
        self.t: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

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