def oddEvenLinkedList(head):
odd=head
even=head.next
evenhead=even
while even!=None and even.next!=None:
odd.next=odd.next.next
even.next=even.next.next
odd=odd.next
even=even.next
odd.next=evenhead
return head