class A:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: C = None
        self.w: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: C = None
        self.x: F = None
        self.u: E = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: H = None
        self.x: J = None
        self.v: I = None
        self.u: E = None
        self.o: H = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: C = None
        self.x: F = None
        self.u: E = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: H = None
        self.x: J = None
        self.v: I = None
        self.u: E = None
        self.o: H = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: B = None
        self.txt = txt

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

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

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