class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: J = None
        self.s: B = None
        self.v: J = None
        self.y: I = None
        self.t: I = None
        self.z: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: G = None
        self.q: H = None
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: J = None
        self.q: A = None
        self.r: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: G = None
        self.z: I = None
        self.q: B = None
        self.x: G = None
        self.o: B = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: I = None
        self.v: H = None
        self.y: B = None
        self.z: E = None
        self.p: H = None
        self.s: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: G = None
        self.q: H = None
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: J = None
        self.q: A = None
        self.r: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: G = None
        self.z: I = None
        self.q: B = None
        self.x: G = None
        self.o: B = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: I = None
        self.v: H = None
        self.y: B = None
        self.z: E = None
        self.p: H = None
        self.s: I = None
        self.txt = txt

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

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