class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: D = None
        self.v: B = None
        self.o: D = None
        self.q: G = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: A = None
        self.x: D = None
        self.s: G = None
        self.w: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: F = None
        self.q: B = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: A = None
        self.x: D = None
        self.s: G = None
        self.w: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: F = None
        self.q: B = None
        self.txt = txt

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

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