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

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.o: H = None
        self.u: D = None
        self.p: D = None
        self.q: D = None
        self.r: E = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: H = None
        self.t: D = None
        self.x: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.o: H = None
        self.u: D = None
        self.p: D = None
        self.q: D = None
        self.r: E = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: H = None
        self.t: D = None
        self.x: F = None
        self.txt = txt

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

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

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