class A:
    def __init__(self, txt: str):
        self.s: J = None
        self.y: I = None
        self.p: C = None
        self.u: C = None
        self.z: G = None
        self.w: C = None
        self.t: C = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.s: J = None
        self.t: G = None
        self.v: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.u: J = None
        self.q: I = None
        self.p: F = None
        self.r: I = None
        self.y: E = None
        self.w: I = None
        self.z: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: F = None
        self.q: F = None
        self.p: H = None
        self.y: F = None
        self.t: H = None
        self.o: C = None
        self.v: F = None
        self.w: H = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: C = None
        self.z: C = None
        self.v: J = None
        self.s: F = None
        self.o: C = None
        self.q: E = None
        self.y: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: I = None
        self.t: C = None
        self.txt = txt

f = A("f")
l = B("l")
i = C("i")
c = D("c")
g = E("g")
b = F("b")
m = G("m")
e = H("e")
h = I("h")
j = J("j")

f.s = j
f.y = h
f.p = i
f.u = i
f.w = i
f.t = i
f.z = m
f.v = c
l.o = i
l.s = j
l.t = m
l.v = c
i.r = g
i.o = b
c.s = e
c.u = j
c.q = h
c.r = h
c.w = h
c.p = b
c.z = b
c.y = g
g.y = b
g.v = f
g.p = m
b.z = m
b.t = h
b.q = h
b.v = i
b.p = i
b.o = j
b.s = g
b.u = l
m.z = h
m.r = b
m.q = b
m.y = b
m.v = b
m.p = e
m.t = e
m.w = e
m.o = i
m.s = f
e.z = h
h.r = b
h.s = b
h.y = b
h.t = i
h.z = i
h.o = i
h.v = j
h.q = g
j.x = h
j.u = h
j.t = i
assert g.v.z.t.txt == "
class A:
    def __init__(self, txt: str):
        self.s: J = None
        self.y: I = None
        self.p: C = None
        self.u: C = None
        self.z: G = None
        self.w: C = None
        self.t: C = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.s: J = None
        self.t: G = None
        self.v: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.u: J = None
        self.q: I = None
        self.p: F = None
        self.r: I = None
        self.y: E = None
        self.w: I = None
        self.z: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: F = None
        self.q: F = None
        self.p: H = None
        self.y: F = None
        self.t: H = None
        self.o: C = None
        self.v: F = None
        self.w: H = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: C = None
        self.z: C = None
        self.v: J = None
        self.s: F = None
        self.o: C = None
        self.q: E = None
        self.y: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: I = None
        self.t: C = None
        self.txt = txt

f = A("f")
l = B("l")
i = C("i")
c = D("c")
g = E("g")
b = F("b")
m = G("m")
e = H("e")
h = I("h")
j = J("j")

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