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

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: I = None
        self.o: I = None
        self.z: D = None
        self.w: D = None
        self.r: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: H = None
        self.x: B = None
        self.r: I = None
        self.u: H = None
        self.t: E = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: E = None
        self.z: I = None
        self.s: H = None
        self.t: A = None
        self.p: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: D = None
        self.p: D = None
        self.r: A = None
        self.s: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: I = None
        self.o: I = None
        self.z: D = None
        self.w: D = None
        self.r: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: H = None
        self.x: B = None
        self.r: I = None
        self.u: H = None
        self.t: E = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: E = None
        self.z: I = None
        self.s: H = None
        self.t: A = None
        self.p: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: D = None
        self.p: D = None
        self.r: A = None
        self.s: G = None
        self.txt = txt

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

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