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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: D = None
        self.x: F = None
        self.o: I = None
        self.q: I = None
        self.z: C = None
        self.w: A = None
        self.y: G = None
        self.v: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: D = None
        self.v: H = None
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: B = None
        self.z: D = None
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: D = None
        self.x: F = None
        self.o: I = None
        self.q: I = None
        self.z: C = None
        self.w: A = None
        self.y: G = None
        self.v: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: D = None
        self.v: H = None
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: B = None
        self.z: D = None
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: J = None
        self.txt = txt

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

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

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