class A:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: G = None
        self.x: G = None
        self.t: I = None
        self.o: C = None
        self.z: E = None
        self.u: C = None
        self.w: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: B = None
        self.x: G = None
        self.s: C = None
        self.t: C = None
        self.q: G = None
        self.z: G = None
        self.p: D = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: H = None
        self.z: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

e.r = i
e.s = a
d.p = n
d.v = i
d.x = i
d.t = a
d.o = c
d.u = c
d.z = h
d.w = m
c.s = a
c.v = d
c.x = h
c.o = m
c.z = m
c.u = m
c.r = l
c.w = i
n.s = a
n.v = e
n.z = e
n.w = h
n.t = m
n.u = m
n.q = i
h.u = i
h.x = i
h.q = i
h.z = i
h.v = d
h.r = d
h.s = c
h.t = c
h.p = n
l.z = c
l.s = a
l.v = a
l.w = n
l.y = d
l.o = h
i.o = l
i.z = l
i.u = m
m.s = n
m.v = n
m.q = n
m.x = c
m.y = e
m.r = d
a.q = m
assert i.u.r.p.txt == "
class A:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: G = None
        self.x: G = None
        self.t: I = None
        self.o: C = None
        self.z: E = None
        self.u: C = None
        self.w: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: B = None
        self.x: G = None
        self.s: C = None
        self.t: C = None
        self.q: G = None
        self.z: G = None
        self.p: D = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: H = None
        self.z: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

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