class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: C = None
        self.y: E = None
        self.z: B = None
        self.v: C = None
        self.u: C = None
        self.t: E = None
        self.w: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: D = None
        self.w: F = None
        self.y: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: H = None
        self.r: E = None
        self.t: F = None
        self.x: H = None
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: D = None
        self.w: D = None
        self.s: D = None
        self.r: G = None
        self.z: F = None
        self.p: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: D = None
        self.w: F = None
        self.y: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: H = None
        self.r: E = None
        self.t: F = None
        self.x: H = None
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: D = None
        self.w: D = None
        self.s: D = None
        self.r: G = None
        self.z: F = None
        self.p: B = None
        self.txt = txt

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

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