class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: B = None
        self.z: G = None
        self.q: F = None
        self.x: F = None
        self.p: A = None
        self.t: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: A = None
        self.p: E = None
        self.y: E = None
        self.u: A = None
        self.s: G = None
        self.r: B = None
        self.txt = txt

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

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

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

n = A("n")
e = B("e")
k = C("k")
i = D("i")
l = E("l")
g = F("g")
m = G("m")
b = D("b")
a = A("a")

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: A = None
        self.p: E = None
        self.y: E = None
        self.u: A = None
        self.s: G = None
        self.r: B = None
        self.txt = txt

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

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

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

n = A("n")
e = B("e")
k = C("k")
i = D("i")
l = E("l")
g = F("g")
m = G("m")
b = D("b")
a = A("a")

n.s = i
n.y = e
n.z = m
n.t = m
n.q = g
n.x = g
n.p = a
e.v = m
e.q = l
e.r = l
e.s = g
e.t = n
k.p = b
k.u = e
k.w = e
k.t = g
k.v = g
k.x = l
k.y = a
i.q = e
i.r = e
i.t = a
i.u = a
i.p = l
i.y = l
i.s = m
l.v = e
l.q = e
l.w = m
l.s = m
l.x = a
l.y = k
l.u = g
g.w = l
g.p = l
g.y = e
g.t = m
g.u = n
g.z = n
m.w = a
b.q = e
b.r = e
b.t = a
b.p = l
b.y = l
b.u = n
b.s = m
a.s = b
a.y = e
a.z = m
a.t = m
a.q = g
a.x = g
a.p = n
assert i.r.r.y.p.txt == "b"