class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: I = None
        self.u: G = None
        self.t: C = None
        self.p: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: A = None
        self.o: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: F = None
        self.x: E = None
        self.t: F = None
        self.s: A = None
        self.v: F = None
        self.w: A = None
        self.q: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: C = None
        self.o: E = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: A = None
        self.o: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: F = None
        self.x: E = None
        self.t: F = None
        self.s: A = None
        self.v: F = None
        self.w: A = None
        self.q: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: C = None
        self.o: E = None
        self.txt = txt

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

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

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

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