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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: C = None
        self.x: G = None
        self.p: G = None
        self.o: F = None
        self.txt = txt

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

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

c = A("c")
f = B("f")
g = C("g")
m = D("m")
j = E("j")
b = F("b")
i = G("i")
a = C("a")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: C = None
        self.x: G = None
        self.p: G = None
        self.o: F = None
        self.txt = txt

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

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

c = A("c")
f = B("f")
g = C("g")
m = D("m")
j = E("j")
b = F("b")
i = G("i")
a = C("a")

c.z = j
c.t = j
c.o = j
c.v = m
c.q = f
f.s = c
f.q = c
f.v = i
f.y = i
f.z = a
g.x = a
g.y = f
g.q = j
g.r = c
g.v = b
g.z = i
m.s = c
m.x = b
m.t = j
m.z = j
j.y = b
j.o = b
j.w = g
j.x = i
j.p = i
b.z = i
b.r = j
i.v = f
i.r = j
i.x = j
i.o = b
i.z = g
a.x = g
a.y = f
a.q = j
a.r = c
a.v = b
a.z = i
assert c.v.z.x.o.r.txt == "j"