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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: B = None
        self.v: A = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: E = None
        self.o: F = None
        self.q: C = None
        self.txt = txt

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

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

g = A("g")
f = B("f")
j = C("j")
i = D("i")
h = E("h")
m = F("m")

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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: B = None
        self.v: A = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: E = None
        self.o: F = None
        self.q: C = None
        self.txt = txt

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

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

g = A("g")
f = B("f")
j = C("j")
i = D("i")
h = E("h")
m = F("m")

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