class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: G = None
        self.u: B = None
        self.y: J = None
        self.t: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: G = None
        self.u: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: E = None
        self.x: E = None
        self.v: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: G = None
        self.u: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: E = None
        self.x: E = None
        self.v: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: C = None
        self.txt = txt

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

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