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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

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

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

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