class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.t: G = None
        self.w: I = None
        self.s: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: A = None
        self.x: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.x: F = None
        self.o: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: D = None
        self.t: C = None
        self.v: A = None
        self.w: A = None
        self.u: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: C = None
        self.t: D = None
        self.r: A = None
        self.s: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: I = None
        self.q: E = None
        self.v: C = None
        self.x: E = None
        self.t: B = None
        self.r: A = None
        self.s: E = None
        self.z: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: A = None
        self.x: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.x: F = None
        self.o: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: D = None
        self.t: C = None
        self.v: A = None
        self.w: A = None
        self.u: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: C = None
        self.t: D = None
        self.r: A = None
        self.s: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: I = None
        self.q: E = None
        self.v: C = None
        self.x: E = None
        self.t: B = None
        self.r: A = None
        self.s: E = None
        self.z: B = None
        self.txt = txt

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

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