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

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

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

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

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

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

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

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

b.y = a
b.q = d
m.o = n
m.y = k
m.z = b
m.v = e
m.s = l
m.u = d
n.y = d
n.p = d
n.x = d
n.v = d
n.z = d
n.r = b
e.y = n
e.x = n
e.s = h
e.p = k
e.r = m
e.v = m
d.u = b
a.x = n
a.o = b
k.y = n
k.u = e
k.s = e
k.o = e
k.w = h
k.r = d
l.o = n
l.y = k
l.z = b
l.v = e
l.s = m
l.u = d
c.y = a
c.q = d
h.y = n
h.x = n
h.s = e
h.p = k
h.r = m
h.v = m
assert a.o.y.x.x.txt == "
class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: E = None
        self.txt = txt

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

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

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

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

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

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

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

b.y = a
b.q = d
m.o = n
m.y = k
m.z = b
m.v = e
m.s = l
m.u = d
n.y = d
n.p = d
n.x = d
n.v = d
n.z = d
n.r = b
e.y = n
e.x = n
e.s = h
e.p = k
e.r = m
e.v = m
d.u = b
a.x = n
a.o = b
k.y = n
k.u = e
k.s = e
k.o = e
k.w = h
k.r = d
l.o = n
l.y = k
l.z = b
l.v = e
l.s = m
l.u = d
c.y = a
c.q = d
h.y = n
h.x = n
h.s = e
h.p = k
h.r = m
h.v = m
assert a.o.y.x.x.txt == "d"