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

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: E = None
        self.y: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: D = None
        self.txt = txt

l = A("l")
j = B("j")
k = C("k")
n = D("n")
c = E("c")
g = F("g")
b = B("b")
h = F("h")

l.t = j
l.p = j
l.v = j
l.s = k
l.o = b
j.u = k
j.w = l
j.r = l
j.p = c
j.v = b
k.x = n
k.q = c
k.y = l
n.v = c
n.z = c
n.x = j
n.w = b
n.r = l
c.t = b
c.w = k
c.r = l
c.p = j
g.o = l
g.u = n
b.u = k
b.w = l
b.r = l
b.p = c
b.v = j
h.o = l
h.u = n
assert g.o.s.x.r.s.txt == "
class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: B = None
        self.v: B = None
        self.s: C = None
        self.o: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: E = None
        self.y: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: D = None
        self.txt = txt

l = A("l")
j = B("j")
k = C("k")
n = D("n")
c = E("c")
g = F("g")
b = B("b")
h = F("h")

l.t = j
l.p = j
l.v = j
l.s = k
l.o = b
j.u = k
j.w = l
j.r = l
j.p = c
j.v = b
k.x = n
k.q = c
k.y = l
n.v = c
n.z = c
n.x = j
n.w = b
n.r = l
c.t = b
c.w = k
c.r = l
c.p = j
g.o = l
g.u = n
b.u = k
b.w = l
b.r = l
b.p = c
b.v = j
h.o = l
h.u = n
assert g.o.s.x.r.s.txt == "k"