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

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

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

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: J = None
        self.p: J = None
        self.v: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: J = None
        self.t: J = None
        self.u: B = None
        self.q: J = None
        self.z: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: E = None
        self.o: D = None
        self.p: I = None
        self.v: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: D = None
        self.p: D = None
        self.v: H = None
        self.r: C = None
        self.y: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: J = None
        self.p: J = None
        self.v: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: J = None
        self.t: J = None
        self.u: B = None
        self.q: J = None
        self.z: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: E = None
        self.o: D = None
        self.p: I = None
        self.v: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: D = None
        self.p: D = None
        self.v: H = None
        self.r: C = None
        self.y: E = None
        self.txt = txt

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

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

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