Very simple code..cant get it to work :/

CODE:

int pin=52;
void setup(){
pinMode(pin, INPUT);
Serial.begin(9600);
}
void loop(){
if(pin==HIGH){
Serial.println("yes");
}
else{
Serial.println("no");
}
}

In output it on serial monitor it is giving "no" even when i have shorted pin 52 with 5 v of arduino..can anyone tel me why it isnt working?

int pin=52;
if(pin==HIGH){

HIGH is not 52.

You need to read the state of the pin, and compare that to HIGH.

(deleted)