class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: H = None
        self.u: F = None
        self.y: E = None
        self.v: D = None
        self.o: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: D = None
        self.o: H = None
        self.x: G = None
        self.t: A = None
        self.s: D = None
        self.p: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: H = None
        self.r: B = None
        self.x: E = None
        self.p: B = None
        self.v: H = None
        self.z: J = 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.v: D = None
        self.r: B = None
        self.t: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.p: A = None
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: E = None
        self.z: E = None
        self.v: I = None
        self.txt = txt

j = A("j")
g = B("g")
i = C("i")
n = D("n")
c = E("c")
k = F("k")
b = G("b")
m = H("m")
d = I("d")
h = J("h")

j.x = b
j.p = m
j.u = k
j.y = c
j.v = n
j.o = g
g.o = j
i.r = d
i.p = d
i.v = n
i.s = n
i.o = m
i.x = b
i.t = j
n.s = i
n.u = m
n.v = m
n.r = g
n.p = g
n.x = c
n.z = h
c.v = i
k.v = n
k.r = g
k.t = j
b.u = i
m.x = k
d.z = m
d.p = j
d.w = k
h.r = m
h.p = c
h.z = c
h.v = d
assert i.t.p.x.t.o.o.o.o.u.txt == "
class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: H = None
        self.u: F = None
        self.y: E = None
        self.v: D = None
        self.o: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: D = None
        self.o: H = None
        self.x: G = None
        self.t: A = None
        self.s: D = None
        self.p: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: H = None
        self.r: B = None
        self.x: E = None
        self.p: B = None
        self.v: H = None
        self.z: J = 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.v: D = None
        self.r: B = None
        self.t: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.p: A = None
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: E = None
        self.z: E = None
        self.v: I = None
        self.txt = txt

j = A("j")
g = B("g")
i = C("i")
n = D("n")
c = E("c")
k = F("k")
b = G("b")
m = H("m")
d = I("d")
h = J("h")

j.x = b
j.p = m
j.u = k
j.y = c
j.v = n
j.o = g
g.o = j
i.r = d
i.p = d
i.v = n
i.s = n
i.o = m
i.x = b
i.t = j
n.s = i
n.u = m
n.v = m
n.r = g
n.p = g
n.x = c
n.z = h
c.v = i
k.v = n
k.r = g
k.t = j
b.u = i
m.x = k
d.z = m
d.p = j
d.w = k
h.r = m
h.p = c
h.z = c
h.v = d
assert i.t.p.x.t.o.o.o.o.u.txt == "k"