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

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: C = None
        self.z: H = None
        self.q: J = None
        self.v: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: H = None
        self.w: H = None
        self.o: A = None
        self.s: I = None
        self.x: A = None
        self.u: J = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: D = None
        self.x: H = None
        self.z: G = None
        self.y: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.v: D = None
        self.q: H = None
        self.r: D = None
        self.x: C = None
        self.p: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: F = None
        self.v: H = None
        self.t: H = None
        self.x: H = None
        self.y: C = None
        self.u: A = None
        self.s: C = None
        self.r: A = None
        self.z: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: C = None
        self.z: H = None
        self.q: J = None
        self.v: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: H = None
        self.w: H = None
        self.o: A = None
        self.s: I = None
        self.x: A = None
        self.u: J = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: D = None
        self.x: H = None
        self.z: G = None
        self.y: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.v: D = None
        self.q: H = None
        self.r: D = None
        self.x: C = None
        self.p: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: F = None
        self.v: H = None
        self.t: H = None
        self.x: H = None
        self.y: C = None
        self.u: A = None
        self.s: C = None
        self.r: A = None
        self.z: A = None
        self.txt = txt

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

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