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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: I = None
        self.u: I = None
        self.v: G = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: I = None
        self.q: I = None
        self.o: B = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.p: I = None
        self.v: F = None
        self.x: B = None
        self.u: I = None
        self.r: B = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: I = None
        self.u: I = None
        self.v: G = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: I = None
        self.q: I = None
        self.o: B = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.p: I = None
        self.v: F = None
        self.x: B = None
        self.u: I = None
        self.r: B = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: G = None
        self.txt = txt

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

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