class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: G = None
        self.z: H = None
        self.w: C = None
        self.v: F = None
        self.y: G = None
        self.x: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: E = None
        self.t: A = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: E = None
        self.r: J = None
        self.s: D = None
        self.w: J = None
        self.u: H = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: J = None
        self.v: B = None
        self.y: J = None
        self.w: I = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.w: E = None
        self.p: B = None
        self.x: E = None
        self.z: A = None
        self.u: E = None
        self.y: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: C = None
        self.z: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: E = None
        self.t: A = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: E = None
        self.r: J = None
        self.s: D = None
        self.w: J = None
        self.u: H = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: J = None
        self.v: B = None
        self.y: J = None
        self.w: I = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.w: E = None
        self.p: B = None
        self.x: E = None
        self.z: A = None
        self.u: E = None
        self.y: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: C = None
        self.z: C = None
        self.txt = txt

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

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