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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: A = None
        self.u: F = None
        self.w: D = None
        self.z: A = None
        self.r: G = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: F = None
        self.y: E = None
        self.x: G = None
        self.u: D = None
        self.s: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: B = None
        self.o: B = None
        self.z: B = None
        self.q: H = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: E = None
        self.r: A = None
        self.v: E = None
        self.y: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: A = None
        self.u: F = None
        self.w: D = None
        self.z: A = None
        self.r: G = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: F = None
        self.y: E = None
        self.x: G = None
        self.u: D = None
        self.s: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: B = None
        self.o: B = None
        self.z: B = None
        self.q: H = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: E = None
        self.r: A = None
        self.v: E = None
        self.y: F = None
        self.txt = txt

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

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