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

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.w: I = None
        self.t: I = None
        self.v: C = None
        self.z: H = None
        self.y: G = None
        self.o: J = None
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: G = None
        self.q: I = None
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.z: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: I = None
        self.y: H = None
        self.o: H = None
        self.w: H = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.w: I = None
        self.t: I = None
        self.v: C = None
        self.z: H = None
        self.y: G = None
        self.o: J = None
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: G = None
        self.q: I = None
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.z: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: I = None
        self.y: H = None
        self.o: H = None
        self.w: H = None
        self.txt = txt

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

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

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

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

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