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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: D = None
        self.p: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: G = None
        self.z: G = None
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: G = None
        self.u: D = None
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: D = None
        self.p: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: G = None
        self.z: G = None
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: G = None
        self.u: D = None
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

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

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