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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: F = None
        self.r: H = None
        self.w: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: A = None
        self.p: E = None
        self.txt = txt

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

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

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

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

m = A("m")
g = B("g")
f = C("f")
l = D("l")
h = E("h")
i = F("i")
b = G("b")
a = H("a")
e = G("e")
j = E("j")

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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: F = None
        self.r: H = None
        self.w: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: A = None
        self.p: E = None
        self.txt = txt

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

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

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

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

m = A("m")
g = B("g")
f = C("f")
l = D("l")
h = E("h")
i = F("i")
b = G("b")
a = H("a")
e = G("e")
j = E("j")

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