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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: A = None
        self.s: E = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: A = None
        self.s: E = None
        self.txt = txt

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

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

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

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

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

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

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