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

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: G = None
        self.z: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: E = None
        self.u: J = None
        self.r: H = None
        self.x: E = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: G = None
        self.v: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

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

j = A("j")
g = B("g")
i = C("i")
l = D("l")
d = E("d")
h = F("h")
f = G("f")
m = H("m")
b = I("b")
c = J("c")

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

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: G = None
        self.z: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: E = None
        self.u: J = None
        self.r: H = None
        self.x: E = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: G = None
        self.v: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

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

j = A("j")
g = B("g")
i = C("i")
l = D("l")
d = E("d")
h = F("h")
f = G("f")
m = H("m")
b = I("b")
c = J("c")

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