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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: D = None
        self.r: D = None
        self.t: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: A = None
        self.r: D = None
        self.v: A = None
        self.s: G = None
        self.o: B = None
        self.p: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: D = None
        self.r: D = None
        self.t: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: A = None
        self.r: D = None
        self.v: A = None
        self.s: G = None
        self.o: B = None
        self.p: B = None
        self.txt = txt

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

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

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

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