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

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: D = None
        self.o: C = None
        self.u: J = None
        self.x: D = None
        self.p: D = None
        self.v: I = None
        self.z: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: C = None
        self.z: C = None
        self.o: C = None
        self.v: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: D = None
        self.o: C = None
        self.u: J = None
        self.x: D = None
        self.p: D = None
        self.v: I = None
        self.z: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: C = None
        self.z: C = None
        self.o: C = None
        self.v: E = None
        self.txt = txt

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

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

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