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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: F = None
        self.v: H = None
        self.q: I = None
        self.s: D = None
        self.y: C = None
        self.o: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: G = None
        self.o: F = None
        self.t: G = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: F = None
        self.y: B = None
        self.u: E = None
        self.s: F = None
        self.p: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: J = None
        self.u: J = None
        self.x: J = None
        self.v: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: F = None
        self.v: H = None
        self.q: I = None
        self.s: D = None
        self.y: C = None
        self.o: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: G = None
        self.o: F = None
        self.t: G = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: F = None
        self.y: B = None
        self.u: E = None
        self.s: F = None
        self.p: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: J = None
        self.u: J = None
        self.x: J = None
        self.v: J = None
        self.txt = txt

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

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

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