class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: G = None
        self.x: B = None
        self.o: J = None
        self.r: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: I = None
        self.s: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: J = None
        self.r: D = None
        self.x: H = None
        self.q: D = None
        self.z: D = None
        self.y: G = None
        self.s: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: I = None
        self.r: A = None
        self.q: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: A = None
        self.v: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: I = None
        self.s: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: J = None
        self.r: D = None
        self.x: H = None
        self.q: D = None
        self.z: D = None
        self.y: G = None
        self.s: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: I = None
        self.r: A = None
        self.q: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: A = None
        self.v: C = None
        self.txt = txt

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

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

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