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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: B = None
        self.v: F = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: B = None
        self.v: F = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: B = None
        self.txt = txt

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

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