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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.x: E = None
        self.v: C = None
        self.q: E = None
        self.u: E = None
        self.s: D = None
        self.t: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: C = None
        self.x: G = None
        self.s: D = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: H = None
        self.v: H = None
        self.w: E = None
        self.o: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.x: E = None
        self.v: C = None
        self.q: E = None
        self.u: E = None
        self.s: D = None
        self.t: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: C = None
        self.x: G = None
        self.s: D = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: H = None
        self.v: H = None
        self.w: E = None
        self.o: C = None
        self.txt = txt

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

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

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