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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: A = None
        self.w: A = None
        self.r: I = None
        self.q: H = None
        self.s: F = None
        self.t: I = None
        self.o: F = None
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: G = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: I = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: A = None
        self.r: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: H = None
        self.s: E = None
        self.v: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: A = None
        self.w: A = None
        self.r: I = None
        self.q: H = None
        self.s: F = None
        self.t: I = None
        self.o: F = None
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: G = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: I = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: A = None
        self.r: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: H = None
        self.s: E = None
        self.v: E = None
        self.txt = txt

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

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