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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.r: D = None
        self.s: F = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: C = None
        self.q: C = None
        self.z: C = None
        self.w: B = None
        self.u: E = None
        self.p: D = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.r: D = None
        self.s: F = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: C = None
        self.q: C = None
        self.z: C = None
        self.w: B = None
        self.u: E = None
        self.p: D = None
        self.txt = txt

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

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

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