class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: H = None
        self.x: J = None
        self.s: I = None
        self.t: I = None
        self.v: I = None
        self.q: H = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.u: H = None
        self.o: D = None
        self.v: D = None
        self.w: I = None
        self.q: I = None
        self.t: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.s: D = None
        self.w: J = None
        self.o: I = None
        self.x: I = None
        self.y: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: B = None
        self.r: I = None
        self.t: C = None
        self.y: I = None
        self.v: H = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.u: H = None
        self.o: D = None
        self.v: D = None
        self.w: I = None
        self.q: I = None
        self.t: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.s: D = None
        self.w: J = None
        self.o: I = None
        self.x: I = None
        self.y: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: B = None
        self.r: I = None
        self.t: C = None
        self.y: I = None
        self.v: H = None
        self.txt = txt

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

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