class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: C = None
        self.o: G = None
        self.u: B = None
        self.p: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: G = None
        self.s: E = None
        self.o: G = None
        self.q: G = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: C = None
        self.p: A = None
        self.z: C = None
        self.v: H = None
        self.s: E = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: G = None
        self.s: E = None
        self.o: G = None
        self.q: G = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: C = None
        self.p: A = None
        self.z: C = None
        self.v: H = None
        self.s: E = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: E = None
        self.txt = txt

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

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