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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: B = None
        self.s: F = None
        self.u: G = None
        self.y: D = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: H = None
        self.u: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.r: J = None
        self.v: E = None
        self.s: H = None
        self.x: B = None
        self.t: A = None
        self.z: J = None
        self.o: J = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.y: E = None
        self.r: F = None
        self.t: F = None
        self.o: F = None
        self.v: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: B = None
        self.s: F = None
        self.u: G = None
        self.y: D = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: H = None
        self.u: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.r: J = None
        self.v: E = None
        self.s: H = None
        self.x: B = None
        self.t: A = None
        self.z: J = None
        self.o: J = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.y: E = None
        self.r: F = None
        self.t: F = None
        self.o: F = None
        self.v: D = None
        self.txt = txt

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

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

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

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