class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: C = None
        self.z: G = None
        self.s: B = None
        self.t: G = None
        self.v: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: I = None
        self.r: B = None
        self.o: D = None
        self.y: E = None
        self.v: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: B = None
        self.y: E = None
        self.q: G = None
        self.t: B = None
        self.p: B = None
        self.w: G = None
        self.r: I = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: I = None
        self.r: B = None
        self.o: D = None
        self.y: E = None
        self.v: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: B = None
        self.y: E = None
        self.q: G = None
        self.t: B = None
        self.p: B = None
        self.w: G = None
        self.r: I = None
        self.txt = txt

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

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

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