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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: H = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: A = None
        self.r: G = None
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: D = None
        self.w: B = None
        self.t: D = None
        self.y: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: H = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: A = None
        self.r: G = None
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: D = None
        self.w: B = None
        self.t: D = None
        self.y: C = None
        self.txt = txt

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

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

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

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