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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: D = None
        self.z: G = None
        self.p: G = None
        self.y: C = None
        self.v: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: D = None
        self.w: H = None
        self.q: A = None
        self.z: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: C = None
        self.w: H = None
        self.q: G = None
        self.u: J = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: J = None
        self.p: E = None
        self.o: J = None
        self.t: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: A = None
        self.u: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: D = None
        self.z: G = None
        self.p: G = None
        self.y: C = None
        self.v: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: D = None
        self.w: H = None
        self.q: A = None
        self.z: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: C = None
        self.w: H = None
        self.q: G = None
        self.u: J = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: J = None
        self.p: E = None
        self.o: J = None
        self.t: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: A = None
        self.u: G = None
        self.txt = txt

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

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