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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: C = None
        self.p: C = None
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: I = None
        self.v: G = None
        self.q: A = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.u: I = None
        self.p: E = None
        self.v: B = None
        self.z: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: D = None
        self.t: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: C = None
        self.p: C = None
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: I = None
        self.v: G = None
        self.q: A = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.u: I = None
        self.p: E = None
        self.v: B = None
        self.z: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: D = None
        self.t: F = None
        self.txt = txt

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

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