class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: I = None
        self.q: D = None
        self.p: C = None
        self.u: B = None
        self.y: F = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: A = None
        self.r: D = None
        self.t: I = None
        self.u: J = None
        self.y: I = None
        self.v: F = None
        self.z: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: G = None
        self.o: H = None
        self.u: B = None
        self.z: A = None
        self.w: F = None
        self.y: J = None
        self.s: C = None
        self.q: J = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.x: E = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: A = None
        self.r: D = None
        self.t: I = None
        self.u: J = None
        self.y: I = None
        self.v: F = None
        self.z: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: G = None
        self.o: H = None
        self.u: B = None
        self.z: A = None
        self.w: F = None
        self.y: J = None
        self.s: C = None
        self.q: J = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.x: E = None
        self.txt = txt

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

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

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

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