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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: A = None
        self.t: A = None
        self.x: C = None
        self.u: F = None
        self.v: G = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: C = None
        self.x: A = None
        self.p: C = None
        self.w: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: F = None
        self.p: F = None
        self.s: B = None
        self.t: D = None
        self.x: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: A = None
        self.t: A = None
        self.x: C = None
        self.u: F = None
        self.v: G = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: C = None
        self.x: A = None
        self.p: C = None
        self.w: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: F = None
        self.p: F = None
        self.s: B = None
        self.t: D = None
        self.x: F = None
        self.txt = txt

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

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