class A:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: F = None
        self.v: J = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: A = None
        self.r: J = None
        self.u: D = None
        self.y: B = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: A = None
        self.r: J = None
        self.u: D = None
        self.y: B = None
        self.txt = txt

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

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

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

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