class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: F = None
        self.r: G = None
        self.z: C = None
        self.o: E = None
        self.p: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: E = None
        self.v: G = None
        self.o: G = None
        self.t: G = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: G = None
        self.u: A = None
        self.w: E = None
        self.x: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: E = None
        self.v: G = None
        self.o: G = None
        self.t: G = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: G = None
        self.u: A = None
        self.w: E = None
        self.x: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: B = None
        self.txt = txt

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

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

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