class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.w: J = None
        self.y: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: C = None
        self.z: H = None
        self.w: B = None
        self.t: B = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: C = None
        self.z: H = None
        self.w: B = None
        self.t: B = None
        self.txt = txt

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

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

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

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

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

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

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