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

class B:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: A = None
        self.p: B = None
        self.q: G = None
        self.u: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: F = None
        self.q: B = None
        self.z: D = None
        self.w: A = None
        self.txt = txt

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

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

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

j = A("j")
m = B("m")
b = C("b")
k = D("k")
c = E("c")
f = F("f")
d = G("d")
l = B("l")
n = D("n")

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

class B:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: A = None
        self.p: B = None
        self.q: G = None
        self.u: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: F = None
        self.q: B = None
        self.z: D = None
        self.w: A = None
        self.txt = txt

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

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

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

j = A("j")
m = B("m")
b = C("b")
k = D("k")
c = E("c")
f = F("f")
d = G("d")
l = B("l")
n = D("n")

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