class A:
    def __init__(self, txt: str):
        self.r: I = None
        self.z: F = None
        self.t: C = None
        self.p: D = None
        self.y: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: B = None
        self.r: I = None
        self.o: A = None
        self.u: A = None
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: B = None
        self.r: H = None
        self.u: C = None
        self.s: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: B = None
        self.r: I = None
        self.o: A = None
        self.u: A = None
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: B = None
        self.r: H = None
        self.u: C = None
        self.s: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

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

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