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

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.o: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.s: H = None
        self.t: A = None
        self.o: H = None
        self.y: F = None
        self.u: H = None
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: A = None
        self.o: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.o: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.s: H = None
        self.t: A = None
        self.o: H = None
        self.y: F = None
        self.u: H = None
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: A = None
        self.o: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

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

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

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

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