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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: J = None
        self.x: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: H = None
        self.v: D = None
        self.u: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: H = None
        self.s: A = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.o: G = None
        self.s: G = None
        self.r: I = None
        self.t: E = None
        self.w: B = None
        self.v: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: J = None
        self.x: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: H = None
        self.v: D = None
        self.u: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: H = None
        self.s: A = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.o: G = None
        self.s: G = None
        self.r: I = None
        self.t: E = None
        self.w: B = None
        self.v: F = None
        self.txt = txt

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

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