class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: G = None
        self.x: C = None
        self.w: C = None
        self.v: F = None
        self.u: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: C = None
        self.u: G = None
        self.p: E = None
        self.z: D = None
        self.x: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: C = None
        self.t: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: B = None
        self.w: I = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: B = None
        self.q: A = None
        self.w: F = None
        self.x: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: C = None
        self.u: G = None
        self.p: E = None
        self.z: D = None
        self.x: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: C = None
        self.t: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: B = None
        self.w: I = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: B = None
        self.q: A = None
        self.w: F = None
        self.x: H = None
        self.txt = txt

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

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