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

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

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

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: D = None
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: G = None
        self.r: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: E = None
        self.w: F = None
        self.r: F = None
        self.y: I = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: D = None
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: G = None
        self.r: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: E = None
        self.w: F = None
        self.r: F = None
        self.y: I = None
        self.txt = txt

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

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