class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: D = None
        self.y: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: D = None
        self.z: C = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: A = None
        self.w: G = None
        self.t: G = None
        self.x: C = None
        self.s: E = None
        self.q: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: D = None
        self.z: C = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: A = None
        self.w: G = None
        self.t: G = None
        self.x: C = None
        self.s: E = None
        self.q: B = None
        self.txt = txt

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

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