class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: G = None
        self.t: C = None
        self.w: G = None
        self.r: B = None
        self.s: I = None
        self.u: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: G = None
        self.s: E = None
        self.w: E = None
        self.t: F = None
        self.o: D = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: F = None
        self.s: I = None
        self.q: I = None
        self.v: C = None
        self.z: A = None
        self.x: I = None
        self.p: I = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: I = None
        self.z: G = None
        self.t: C = None
        self.v: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: D = None
        self.u: B = None
        self.q: C = None
        self.x: G = None
        self.r: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: G = None
        self.s: E = None
        self.w: E = None
        self.t: F = None
        self.o: D = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: F = None
        self.s: I = None
        self.q: I = None
        self.v: C = None
        self.z: A = None
        self.x: I = None
        self.p: I = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: I = None
        self.z: G = None
        self.t: C = None
        self.v: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: D = None
        self.u: B = None
        self.q: C = None
        self.x: G = None
        self.r: D = None
        self.txt = txt

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

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

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