class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.v: D = None
        self.p: C = None
        self.t: H = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: G = None
        self.t: E = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: F = None
        self.x: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: J = None
        self.p: C = None
        self.r: F = None
        self.z: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: J = None
        self.v: G = None
        self.x: H = None
        self.q: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: H = None
        self.o: C = None
        self.x: G = None
        self.v: C = None
        self.z: C = None
        self.t: F = None
        self.r: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: G = None
        self.t: E = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: F = None
        self.x: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: J = None
        self.p: C = None
        self.r: F = None
        self.z: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: J = None
        self.v: G = None
        self.x: H = None
        self.q: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: H = None
        self.o: C = None
        self.x: G = None
        self.v: C = None
        self.z: C = None
        self.t: F = None
        self.r: E = None
        self.txt = txt

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

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