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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.z: J = None
        self.q: A = None
        self.t: I = None
        self.o: E = None
        self.y: J = None
        self.r: J = None
        self.s: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: A = None
        self.y: A = None
        self.o: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: D = None
        self.t: C = None
        self.x: J = None
        self.u: H = None
        self.w: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: E = None
        self.r: C = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: J = None
        self.o: B = None
        self.r: E = None
        self.v: E = None
        self.p: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: E = None
        self.p: D = None
        self.o: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: I = None
        self.o: A = None
        self.r: I = None
        self.w: H = None
        self.v: D = None
        self.txt = txt

g = A("g")
b = B("b")
m = C("m")
a = D("a")
i = E("i")
d = F("d")
e = G("e")
l = H("l")
k = I("k")
f = J("f")

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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.z: J = None
        self.q: A = None
        self.t: I = None
        self.o: E = None
        self.y: J = None
        self.r: J = None
        self.s: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: A = None
        self.y: A = None
        self.o: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: D = None
        self.t: C = None
        self.x: J = None
        self.u: H = None
        self.w: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: E = None
        self.r: C = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: J = None
        self.o: B = None
        self.r: E = None
        self.v: E = None
        self.p: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: E = None
        self.p: D = None
        self.o: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: I = None
        self.o: A = None
        self.r: I = None
        self.w: H = None
        self.v: D = None
        self.txt = txt

g = A("g")
b = B("b")
m = C("m")
a = D("a")
i = E("i")
d = F("d")
e = G("e")
l = H("l")
k = I("k")
f = J("f")

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