class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: J = None
        self.q: G = None
        self.x: C = None
        self.p: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: J = None
        self.x: J = None
        self.p: H = None
        self.s: H = None
        self.u: J = None
        self.w: J = None
        self.o: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: I = None
        self.u: H = None
        self.p: G = None
        self.s: E = None
        self.x: E = None
        self.w: I = None
        self.y: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: J = None
        self.q: G = None
        self.x: C = None
        self.p: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: J = None
        self.x: J = None
        self.p: H = None
        self.s: H = None
        self.u: J = None
        self.w: J = None
        self.o: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: I = None
        self.u: H = None
        self.p: G = None
        self.s: E = None
        self.x: E = None
        self.w: I = None
        self.y: A = None
        self.txt = txt

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

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