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

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

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: G = None
        self.w: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.p: C = None
        self.u: C = None
        self.v: H = None
        self.s: B = None
        self.txt = txt

e = A("e")
a = B("a")
g = C("g")
h = D("h")
j = E("j")
c = F("c")
f = G("f")
d = H("d")
n = I("n")

e.s = c
e.q = d
a.z = d
a.s = d
a.w = n
a.p = j
a.u = c
a.q = f
a.o = f
a.y = h
g.q = n
g.u = n
h.v = j
j.o = c
j.x = c
j.z = h
j.s = h
j.t = d
j.p = d
j.v = n
j.w = f
j.u = a
c.v = e
f.x = h
f.r = j
d.q = n
d.p = f
d.w = f
n.z = d
n.v = d
n.p = g
n.u = g
n.s = a
assert c.v.q.p.r.s.v.v.s.s.txt == "
class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.q: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: G = None
        self.w: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.p: C = None
        self.u: C = None
        self.v: H = None
        self.s: B = None
        self.txt = txt

e = A("e")
a = B("a")
g = C("g")
h = D("h")
j = E("j")
c = F("c")
f = G("f")
d = H("d")
n = I("n")

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