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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: D = None
        self.r: A = None
        self.w: E = None
        self.x: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: D = None
        self.t: A = None
        self.o: G = None
        self.x: B = None
        self.txt = txt

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

g = A("g")
k = B("k")
i = C("i")
c = D("c")
e = E("e")
h = F("h")
d = G("d")
n = A("n")
j = G("j")

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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: D = None
        self.r: A = None
        self.w: E = None
        self.x: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: D = None
        self.t: A = None
        self.o: G = None
        self.x: B = None
        self.txt = txt

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

g = A("g")
k = B("k")
i = C("i")
c = D("c")
e = E("e")
h = F("h")
d = G("d")
n = A("n")
j = G("j")

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