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

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

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: B = None
        self.u: G = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: B = None
        self.u: G = None
        self.txt = txt

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

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

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