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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: D = None
        self.p: D = None
        self.w: C = None
        self.u: F = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: E = None
        self.w: C = None
        self.r: E = None
        self.u: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: E = None
        self.q: B = None
        self.t: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: D = None
        self.p: D = None
        self.w: C = None
        self.u: F = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: E = None
        self.w: C = None
        self.r: E = None
        self.u: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: E = None
        self.q: B = None
        self.t: E = None
        self.txt = txt

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

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