class A:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: I = None
        self.t: H = None
        self.p: D = None
        self.v: H = None
        self.q: E = None
        self.z: I = None
        self.w: E = None
        self.y: H = None
        self.u: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: J = None
        self.p: A = None
        self.w: B = None
        self.y: A = None
        self.r: J = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: B = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: E = None
        self.s: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.v: J = None
        self.p: E = None
        self.w: E = None
        self.u: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: J = None
        self.p: A = None
        self.w: B = None
        self.y: A = None
        self.r: J = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: B = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: E = None
        self.s: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.v: J = None
        self.p: E = None
        self.w: E = None
        self.u: C = None
        self.txt = txt

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

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

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