class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: F = None
        self.t: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: J = None
        self.u: G = None
        self.x: D = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: H = None
        self.u: J = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: J = None
        self.s: C = None
        self.x: H = None
        self.v: B = None
        self.r: A = None
        self.u: E = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: G = None
        self.x: A = None
        self.z: F = None
        self.y: B = None
        self.t: B = None
        self.w: A = None
        self.v: H = None
        self.s: H = None
        self.o: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: J = None
        self.r: A = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: J = None
        self.u: G = None
        self.x: D = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: H = None
        self.u: J = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: J = None
        self.s: C = None
        self.x: H = None
        self.v: B = None
        self.r: A = None
        self.u: E = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: G = None
        self.x: A = None
        self.z: F = None
        self.y: B = None
        self.t: B = None
        self.w: A = None
        self.v: H = None
        self.s: H = None
        self.o: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: J = None
        self.r: A = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: D = None
        self.txt = txt

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

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