class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: J = None
        self.y: E = None
        self.u: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: E = None
        self.r: E = None
        self.x: A = None
        self.v: D = None
        self.t: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: D = None
        self.w: B = None
        self.r: I = None
        self.u: I = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: G = None
        self.w: D = None
        self.z: E = None
        self.p: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: D = None
        self.q: D = None
        self.r: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: E = None
        self.r: E = None
        self.x: A = None
        self.v: D = None
        self.t: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: D = None
        self.w: B = None
        self.r: I = None
        self.u: I = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: G = None
        self.w: D = None
        self.z: E = None
        self.p: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: D = None
        self.q: D = None
        self.r: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

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

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