class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: I = None
        self.v: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: A = None
        self.q: I = None
        self.r: G = None
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: I = None
        self.v: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.o: E = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: B = None
        self.y: E = None
        self.s: E = None
        self.t: C = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: A = None
        self.q: I = None
        self.r: G = None
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: I = None
        self.v: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.o: E = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: B = None
        self.y: E = None
        self.s: E = None
        self.t: C = None
        self.txt = txt

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

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

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

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