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

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.r: F = None
        self.p: C = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: B = None
        self.y: C = None
        self.v: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.r: F = None
        self.p: C = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: B = None
        self.y: C = None
        self.v: C = None
        self.txt = txt

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

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