class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.q: J = None
        self.v: F = None
        self.x: F = None
        self.s: J = None
        self.t: J = None
        self.u: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: D = None
        self.y: D = None
        self.s: F = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: I = None
        self.s: I = None
        self.q: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: J = None
        self.s: C = None
        self.x: C = None
        self.u: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: D = None
        self.y: D = None
        self.s: F = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: I = None
        self.s: I = None
        self.q: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: J = None
        self.s: C = None
        self.x: C = None
        self.u: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

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

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