class A:
    def __init__(self, txt: str):
        self.r: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: A = None
        self.o: C = None
        self.u: G = None
        self.q: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: B = None
        self.s: I = None
        self.u: C = None
        self.x: B = None
        self.t: B = None
        self.p: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: B = None
        self.s: F = None
        self.x: F = None
        self.y: A = None
        self.z: A = None
        self.w: F = None
        self.q: A = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: A = None
        self.o: C = None
        self.u: G = None
        self.q: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: B = None
        self.s: I = None
        self.u: C = None
        self.x: B = None
        self.t: B = None
        self.p: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: B = None
        self.s: F = None
        self.x: F = None
        self.y: A = None
        self.z: A = None
        self.w: F = None
        self.q: A = None
        self.txt = txt

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

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

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