class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: D = None
        self.v: A = None
        self.s: A = None
        self.u: F = None
        self.w: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: B = None
        self.t: D = None
        self.s: D = None
        self.v: E = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: F = None
        self.w: F = None
        self.u: D = None
        self.txt = txt

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

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

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

n = A("n")
l = B("l")
g = C("g")
a = D("a")
j = E("j")
f = F("f")
m = B("m")
e = F("e")
k = E("k")
h = A("h")

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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: B = None
        self.t: D = None
        self.s: D = None
        self.v: E = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: F = None
        self.w: F = None
        self.u: D = None
        self.txt = txt

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

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

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

n = A("n")
l = B("l")
g = C("g")
a = D("a")
j = E("j")
f = F("f")
m = B("m")
e = F("e")
k = E("k")
h = A("h")

n.t = a
n.r = a
n.v = h
n.s = h
n.u = f
n.w = l
l.u = g
l.q = g
l.p = m
l.t = a
l.s = a
l.v = k
g.z = f
g.w = f
g.q = e
g.u = a
a.w = j
a.y = g
a.r = g
a.p = m
a.q = e
a.t = n
j.t = e
f.y = e
m.u = g
m.q = g
m.p = l
m.t = a
m.s = a
m.v = j
e.y = f
k.t = e
h.t = a
h.r = a
h.v = n
h.s = n
h.u = f
h.w = m
assert j.t.y.y.y.y.txt == "e"