class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: G = None
        self.o: F = None
        self.w: H = None
        self.p: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: B = None
        self.v: I = None
        self.w: C = None
        self.t: E = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: G = None
        self.w: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: B = None
        self.v: I = None
        self.w: C = None
        self.t: E = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: G = None
        self.w: A = None
        self.txt = txt

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

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