class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: F = None
        self.r: I = None
        self.x: F = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: J = None
        self.v: I = None
        self.t: G = None
        self.r: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: C = None
        self.z: I = None
        self.r: H = None
        self.u: A = None
        self.w: C = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: J = None
        self.s: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: D = None
        self.z: F = None
        self.p: F = None
        self.txt = txt

f = A("f")
n = B("n")
d = C("d")
h = D("h")
b = E("b")
m = F("m")
l = G("l")
c = H("c")
k = I("k")
e = J("e")

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: J = None
        self.v: I = None
        self.t: G = None
        self.r: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: C = None
        self.z: I = None
        self.r: H = None
        self.u: A = None
        self.w: C = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: J = None
        self.s: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: D = None
        self.z: F = None
        self.p: F = None
        self.txt = txt

f = A("f")
n = B("n")
d = C("d")
h = D("h")
b = E("b")
m = F("m")
l = G("l")
c = H("c")
k = I("k")
e = J("e")

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