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

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

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: A = None
        self.q: A = None
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: A = None
        self.r: C = None
        self.v: D = None
        self.o: C = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: A = None
        self.q: A = None
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: A = None
        self.r: C = None
        self.v: D = None
        self.o: C = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

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