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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: G = None
        self.p: H = None
        self.z: A = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: I = None
        self.q: G = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: B = None
        self.t: D = None
        self.o: A = None
        self.x: C = None
        self.r: I = None
        self.p: C = None
        self.q: D = None
        self.z: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: G = None
        self.w: D = None
        self.r: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: F = None
        self.y: E = None
        self.t: F = None
        self.o: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: G = None
        self.p: H = None
        self.z: A = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: I = None
        self.q: G = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: B = None
        self.t: D = None
        self.o: A = None
        self.x: C = None
        self.r: I = None
        self.p: C = None
        self.q: D = None
        self.z: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: G = None
        self.w: D = None
        self.r: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: F = None
        self.y: E = None
        self.t: F = None
        self.o: A = None
        self.txt = txt

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

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