class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.x: H = None
        self.p: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: A = None
        self.s: F = None
        self.t: F = None
        self.y: H = None
        self.r: G = None
        self.p: F = None
        self.u: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: G = None
        self.x: C = None
        self.o: D = None
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.p: B = None
        self.r: B = None
        self.o: B = None
        self.q: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: A = None
        self.w: E = None
        self.u: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: A = None
        self.s: F = None
        self.t: F = None
        self.y: H = None
        self.r: G = None
        self.p: F = None
        self.u: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: G = None
        self.x: C = None
        self.o: D = None
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.p: B = None
        self.r: B = None
        self.o: B = None
        self.q: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: A = None
        self.w: E = None
        self.u: B = None
        self.txt = txt

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

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