class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: D = None
        self.x: E = None
        self.s: E = None
        self.o: E = None
        self.z: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: E = None
        self.t: D = None
        self.z: C = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: F = None
        self.w: D = None
        self.u: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: A = None
        self.u: A = None
        self.t: G = None
        self.y: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: E = None
        self.t: D = None
        self.z: C = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: F = None
        self.w: D = None
        self.u: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: A = None
        self.u: A = None
        self.t: G = None
        self.y: E = None
        self.txt = txt

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

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