import java.awt.Graphics;

import javax.swing.JFrame;

class node{
node(int a,node next){
this.a=a;this.next=next;
}
int a;
node next;