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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.v: E = None
        self.q: I = None
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.p: I = None
        self.y: G = None
        self.z: E = None
        self.t: H = None
        self.o: G = None
        self.q: I = None
        self.s: G = None
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: I = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: C = None
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: E = None
        self.x: H = None
        self.q: B = None
        self.r: D = None
        self.w: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: F = None
        self.w: G = None
        self.q: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.v: E = None
        self.q: I = None
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.p: I = None
        self.y: G = None
        self.z: E = None
        self.t: H = None
        self.o: G = None
        self.q: I = None
        self.s: G = None
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: I = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: C = None
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: E = None
        self.x: H = None
        self.q: B = None
        self.r: D = None
        self.w: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: F = None
        self.w: G = None
        self.q: G = None
        self.txt = txt

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

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