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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: D = None
        self.p: C = None
        self.v: H = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: E = None
        self.o: G = None
        self.q: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.x: I = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: D = None
        self.p: C = None
        self.v: H = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: E = None
        self.o: G = None
        self.q: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.x: I = None
        self.txt = txt

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

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

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