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

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: D = None
        self.q: I = None
        self.v: B = None
        self.p: D = None
        self.z: H = None
        self.t: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.p: A = None
        self.x: G = None
        self.q: A = None
        self.s: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: A = None
        self.s: E = None
        self.u: F = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: D = None
        self.q: I = None
        self.v: B = None
        self.p: D = None
        self.z: H = None
        self.t: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.p: A = None
        self.x: G = None
        self.q: A = None
        self.s: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: A = None
        self.s: E = None
        self.u: F = None
        self.txt = txt

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

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

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

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