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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: C = None
        self.v: J = None
        self.x: G = None
        self.t: D = None
        self.p: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.r: I = None
        self.q: I = None
        self.x: D = None
        self.v: C = None
        self.t: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: B = None
        self.t: I = None
        self.o: B = None
        self.r: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: H = None
        self.o: D = None
        self.x: A = None
        self.v: F = None
        self.z: C = None
        self.r: C = None
        self.txt = txt

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

d = A("d")
m = B("m")
a = C("a")
h = D("h")
k = E("k")
c = F("c")
e = G("e")
g = H("g")
l = I("l")
j = J("j")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: C = None
        self.v: J = None
        self.x: G = None
        self.t: D = None
        self.p: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.r: I = None
        self.q: I = None
        self.x: D = None
        self.v: C = None
        self.t: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: B = None
        self.t: I = None
        self.o: B = None
        self.r: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: H = None
        self.o: D = None
        self.x: A = None
        self.v: F = None
        self.z: C = None
        self.r: C = None
        self.txt = txt

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

d = A("d")
m = B("m")
a = C("a")
h = D("h")
k = E("k")
c = F("c")
e = G("e")
g = H("g")
l = I("l")
j = J("j")

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