class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: F = None
        self.y: G = None
        self.o: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: G = None
        self.z: G = None
        self.y: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: F = None
        self.w: F = None
        self.p: A = None
        self.o: F = None
        self.txt = txt

a = A("a")
k = B("k")
e = C("e")
h = D("h")
m = E("m")
d = F("d")
j = G("j")
c = F("c")
g = F("g")

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: G = None
        self.z: G = None
        self.y: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: F = None
        self.w: F = None
        self.p: A = None
        self.o: F = None
        self.txt = txt

a = A("a")
k = B("k")
e = C("e")
h = D("h")
m = E("m")
d = F("d")
j = G("j")
c = F("c")
g = F("g")

a.u = h
a.q = g
a.y = j
a.o = e
k.x = m
k.v = h
e.p = j
e.v = j
e.z = j
e.y = j
h.z = k
h.p = m
h.y = j
m.o = j
m.t = j
m.x = j
m.p = k
m.v = a
m.r = e
d.r = c
d.v = k
d.z = m
d.y = j
d.t = h
j.u = a
j.p = a
j.t = d
j.o = d
j.w = g
c.r = g
c.v = k
c.z = m
c.y = j
c.t = h
g.r = c
g.v = k
g.z = m
g.y = j
g.t = h
assert a.u.p.v.o.z.p.txt == "a"