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

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.q: H = None
        self.r: H = None
        self.s: G = None
        self.z: A = None
        self.w: A = None
        self.t: G = None
        self.y: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: A = None
        self.v: H = None
        self.s: H = None
        self.p: A = None
        self.u: A = None
        self.z: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: D = None
        self.s: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.q: H = None
        self.r: H = None
        self.s: G = None
        self.z: A = None
        self.w: A = None
        self.t: G = None
        self.y: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: A = None
        self.v: H = None
        self.s: H = None
        self.p: A = None
        self.u: A = None
        self.z: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: D = None
        self.s: I = None
        self.txt = txt

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

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