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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: A = None
        self.y: F = None
        self.x: I = None
        self.v: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.o: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: A = None
        self.y: F = None
        self.x: I = None
        self.v: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.o: H = None
        self.txt = txt

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

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

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

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

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

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

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

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