class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.q: H = None
        self.t: E = None
        self.z: D = None
        self.o: G = None
        self.w: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: G = None
        self.q: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: C = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: G = None
        self.u: F = None
        self.q: G = None
        self.s: E = None
        self.r: A = None
        self.v: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: G = None
        self.q: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: C = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: G = None
        self.u: F = None
        self.q: G = None
        self.s: E = None
        self.r: A = None
        self.v: B = None
        self.txt = txt

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

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