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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: D = None
        self.v: J = None
        self.s: C = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: B = None
        self.w: C = None
        self.t: G = None
        self.r: H = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: D = None
        self.v: J = None
        self.s: C = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: B = None
        self.w: C = None
        self.t: G = None
        self.r: H = None
        self.txt = txt

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

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

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