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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: F = None
        self.s: F = None
        self.x: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: E = None
        self.y: H = None
        self.t: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.s: B = None
        self.q: D = None
        self.v: I = None
        self.r: D = None
        self.t: C = None
        self.y: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: I = None
        self.q: G = None
        self.z: C = None
        self.v: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: F = None
        self.s: F = None
        self.x: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: E = None
        self.y: H = None
        self.t: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.s: B = None
        self.q: D = None
        self.v: I = None
        self.r: D = None
        self.t: C = None
        self.y: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: I = None
        self.q: G = None
        self.z: C = None
        self.v: A = None
        self.txt = txt

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

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

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