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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: J = None
        self.t: G = None
        self.y: J = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: E = None
        self.v: B = None
        self.q: H = None
        self.x: F = None
        self.y: H = None
        self.u: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: E = None
        self.r: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: G = None
        self.o: A = None
        self.q: F = None
        self.r: B = None
        self.x: I = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: J = None
        self.t: G = None
        self.y: J = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: E = None
        self.v: B = None
        self.q: H = None
        self.x: F = None
        self.y: H = None
        self.u: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: E = None
        self.r: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: G = None
        self.o: A = None
        self.q: F = None
        self.r: B = None
        self.x: I = None
        self.txt = txt

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

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

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

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