class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: B = None
        self.u: C = None
        self.s: I = None
        self.y: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: E = None
        self.w: E = None
        self.z: H = None
        self.s: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: B = None
        self.u: C = None
        self.z: I = None
        self.t: B = None
        self.s: C = None
        self.r: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.o: F = None
        self.y: D = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: E = None
        self.w: E = None
        self.z: H = None
        self.s: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: B = None
        self.u: C = None
        self.z: I = None
        self.t: B = None
        self.s: C = None
        self.r: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.o: F = None
        self.y: D = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

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