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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: F = None
        self.z: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.p: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: C = None
        self.z: J = None
        self.p: F = None
        self.v: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: H = None
        self.s: E = None
        self.r: A = None
        self.o: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: F = None
        self.z: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.p: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: C = None
        self.z: J = None
        self.p: F = None
        self.v: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: H = None
        self.s: E = None
        self.r: A = None
        self.o: B = None
        self.txt = txt

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

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