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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: E = None
        self.s: B = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: E = None
        self.s: B = None
        self.txt = txt

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

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

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

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

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

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

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