class A:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: D = None
        self.w: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: F = None
        self.p: I = None
        self.y: E = None
        self.s: D = None
        self.w: A = None
        self.z: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: D = None
        self.y: G = None
        self.u: C = None
        self.v: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: F = None
        self.q: E = None
        self.r: D = None
        self.z: H = None
        self.s: B = None
        self.x: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: F = None
        self.p: I = None
        self.y: E = None
        self.s: D = None
        self.w: A = None
        self.z: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: D = None
        self.y: G = None
        self.u: C = None
        self.v: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: F = None
        self.q: E = None
        self.r: D = None
        self.z: H = None
        self.s: B = None
        self.x: A = None
        self.txt = txt

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

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