class A:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: I = None
        self.t: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: A = None
        self.r: H = None
        self.o: I = None
        self.s: G = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: F = None
        self.z: J = None
        self.x: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: I = None
        self.t: B = None
        self.y: C = None
        self.s: C = None
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.w: A = None
        self.t: D = None
        self.v: C = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: G = None
        self.x: G = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.v: C = None
        self.r: A = None
        self.w: E = None
        self.p: I = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: A = None
        self.r: H = None
        self.o: I = None
        self.s: G = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: F = None
        self.z: J = None
        self.x: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: I = None
        self.t: B = None
        self.y: C = None
        self.s: C = None
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.w: A = None
        self.t: D = None
        self.v: C = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: G = None
        self.x: G = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.v: C = None
        self.r: A = None
        self.w: E = None
        self.p: I = None
        self.txt = txt

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

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

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

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

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