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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: B = None
        self.p: B = None
        self.v: G = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: F = None
        self.o: F = None
        self.p: D = None
        self.z: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: A = None
        self.w: C = None
        self.p: F = None
        self.t: B = None
        self.y: E = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

j = A("j")
k = B("k")
n = C("n")
d = D("d")
l = E("l")
e = F("e")
g = G("g")
i = C("i")
c = D("c")
m = E("m")

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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: B = None
        self.p: B = None
        self.v: G = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: F = None
        self.o: F = None
        self.p: D = None
        self.z: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: A = None
        self.w: C = None
        self.p: F = None
        self.t: B = None
        self.y: E = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

j = A("j")
k = B("k")
n = C("n")
d = D("d")
l = E("l")
e = F("e")
g = G("g")
i = C("i")
c = D("c")
m = E("m")

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