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

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.q: D = None
        self.x: A = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.v: G = None
        self.w: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: I = None
        self.w: D = None
        self.y: H = None
        self.p: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: H = None
        self.q: C = None
        self.p: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: F = None
        self.u: D = None
        self.v: I = None
        self.t: C = None
        self.y: I = None
        self.z: C = None
        self.txt = txt

h = A("h")
k = B("k")
i = C("i")
d = D("d")
e = E("e")
j = F("j")
m = G("m")
a = H("a")
g = I("g")
b = J("b")

h.u = b
h.y = b
h.t = i
h.x = g
h.s = g
h.w = m
h.z = m
h.p = j
h.o = j
h.q = j
k.y = a
k.s = a
k.u = a
k.r = g
k.p = e
k.t = e
k.q = d
k.z = h
k.o = i
i.w = g
i.q = d
i.x = h
i.y = j
d.q = i
d.v = m
d.w = h
e.s = a
e.o = m
j.x = i
j.r = g
j.w = d
j.y = a
j.p = e
m.t = g
m.y = g
m.w = j
m.v = a
m.s = a
m.q = d
m.r = h
m.p = i
m.z = b
a.y = m
a.w = d
a.z = i
a.t = k
g.y = i
g.q = i
g.x = a
g.p = e
b.q = j
b.s = j
b.u = d
b.v = g
b.y = g
b.t = i
b.z = i
assert i.q.q.x.u.u.q.txt == "
class A:
    def __init__(self, txt: str):
        self.u: J = None
        self.t: C = None
        self.x: I = None
        self.y: J = None
        self.w: G = None
        self.p: F = None
        self.z: G = None
        self.o: F = None
        self.s: I = None
        self.q: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.q: D = None
        self.x: A = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.v: G = None
        self.w: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: I = None
        self.w: D = None
        self.y: H = None
        self.p: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: H = None
        self.q: C = None
        self.p: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: F = None
        self.u: D = None
        self.v: I = None
        self.t: C = None
        self.y: I = None
        self.z: C = None
        self.txt = txt

h = A("h")
k = B("k")
i = C("i")
d = D("d")
e = E("e")
j = F("j")
m = G("m")
a = H("a")
g = I("g")
b = J("b")

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