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

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.x: D = None
        self.o: C = None
        self.t: E = None
        self.s: C = None
        self.r: J = None
        self.p: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: G = None
        self.v: C = None
        self.w: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: J = None
        self.p: C = None
        self.s: H = None
        self.o: E = None
        self.x: E = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: A = None
        self.w: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.x: D = None
        self.o: C = None
        self.t: E = None
        self.s: C = None
        self.r: J = None
        self.p: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: G = None
        self.v: C = None
        self.w: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: J = None
        self.p: C = None
        self.s: H = None
        self.o: E = None
        self.x: E = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: A = None
        self.w: G = None
        self.txt = txt

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

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

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