class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: B = None
        self.q: E = None
        self.z: H = None
        self.o: H = None
        self.x: B = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: H = None
        self.p: G = None
        self.t: D = None
        self.s: E = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: E = None
        self.t: D = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.t: B = None
        self.r: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: F = None
        self.z: F = None
        self.u: C = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: H = None
        self.p: G = None
        self.t: D = None
        self.s: E = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: E = None
        self.t: D = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.t: B = None
        self.r: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: F = None
        self.z: F = None
        self.u: C = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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

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