class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: C = None
        self.v: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: A = None
        self.r: G = None
        self.p: F = None
        self.u: D = None
        self.x: G = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: H = None
        self.p: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: B = None
        self.s: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: A = None
        self.r: G = None
        self.p: F = None
        self.u: D = None
        self.x: G = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: H = None
        self.p: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: B = None
        self.s: F = None
        self.txt = txt

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

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